pagescms 0.0.0-stage → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +66 -2
- package/dist/package/_headers +7 -0
- package/dist/package/cli.mjs +138 -0
- package/dist/package/config-CAscGjBB.js +123 -0
- package/dist/package/config.mjs +1 -0
- package/dist/package/favicon.ico +0 -0
- package/dist/package/favicon.svg +16 -0
- package/dist/package/generate-B-YdQuMX.js +48 -0
- package/dist/package/generate.mjs +1 -0
- package/dist/package/images/astro-blog-template.webp +0 -0
- package/dist/package/images/eleventy-blog-template.webp +0 -0
- package/dist/package/images/email-logo.png +0 -0
- package/dist/package/images/nextjs-blog-template.webp +0 -0
- package/dist/package/images/social-card.png +0 -0
- package/dist/package/migrate.mjs +184 -0
- package/dist/package/reference/docs/configuration/actions.md +160 -0
- package/dist/package/reference/docs/configuration/components.md +56 -0
- package/dist/package/reference/docs/configuration/content/filename.md +63 -0
- package/dist/package/reference/docs/configuration/content/formats.md +63 -0
- package/dist/package/reference/docs/configuration/content/index.md +138 -0
- package/dist/package/reference/docs/configuration/content/view.md +50 -0
- package/dist/package/reference/docs/configuration/fields/block.md +62 -0
- package/dist/package/reference/docs/configuration/fields/boolean.md +22 -0
- package/dist/package/reference/docs/configuration/fields/code.md +29 -0
- package/dist/package/reference/docs/configuration/fields/date.md +35 -0
- package/dist/package/reference/docs/configuration/fields/file.md +34 -0
- package/dist/package/reference/docs/configuration/fields/image.md +48 -0
- package/dist/package/reference/docs/configuration/fields/index.md +130 -0
- package/dist/package/reference/docs/configuration/fields/number.md +28 -0
- package/dist/package/reference/docs/configuration/fields/object.md +63 -0
- package/dist/package/reference/docs/configuration/fields/reference.md +64 -0
- package/dist/package/reference/docs/configuration/fields/rich-text.md +126 -0
- package/dist/package/reference/docs/configuration/fields/select.md +48 -0
- package/dist/package/reference/docs/configuration/fields/string.md +31 -0
- package/dist/package/reference/docs/configuration/fields/text.md +30 -0
- package/dist/package/reference/docs/configuration/fields/uuid.md +28 -0
- package/dist/package/reference/docs/configuration/index.md +88 -0
- package/dist/package/reference/docs/configuration/localization.md +138 -0
- package/dist/package/reference/docs/configuration/media.md +77 -0
- package/dist/package/reference/docs/configuration/settings.md +85 -0
- package/dist/package/reference/docs/extending/custom-field.md +107 -0
- package/dist/package/reference/docs/extending/field-api.md +71 -0
- package/dist/package/reference/docs/extending/plugins.md +67 -0
- package/dist/package/reference/docs/guides/actions.md +14 -0
- package/dist/package/reference/docs/guides/collaborators.md +43 -0
- package/dist/package/reference/docs/guides/editing.md +36 -0
- package/dist/package/reference/docs/guides/media.md +24 -0
- package/dist/package/reference/docs/guides/translations.md +40 -0
- package/dist/package/reference/docs/how-it-works.md +33 -0
- package/dist/package/reference/docs/index.md +25 -0
- package/dist/package/reference/docs/quick-start.md +87 -0
- package/dist/package/reference/docs/reference.md +84 -0
- package/dist/package/reference/docs/self-hosting/cloudflare.md +62 -0
- package/dist/package/reference/docs/self-hosting/environment-variables.md +84 -0
- package/dist/package/reference/docs/self-hosting/github-app.md +54 -0
- package/dist/package/reference/docs/self-hosting/index.md +44 -0
- package/dist/package/reference/docs/self-hosting/netlify.md +41 -0
- package/dist/package/reference/docs/self-hosting/node.md +42 -0
- package/dist/package/reference/docs/self-hosting/upgrading.md +44 -0
- package/dist/package/reference/docs/self-hosting/vercel.md +41 -0
- package/dist/package/reference/docs.json +119 -0
- package/dist/package/reference/manifest.json +190 -0
- package/dist/package/reference.md +79 -0
- package/dist/package/serve-D2bbxXbp.js +25 -0
- package/dist/package/smtp.mjs +13 -0
- package/dist/package/vite-BUlNpf2j.js +260 -0
- package/dist/package/vite.mjs +1 -0
- package/dist/types/client/api/account.d.ts +33 -0
- package/dist/types/client/api/actions.d.ts +67 -0
- package/dist/types/client/api/activity.d.ts +4 -0
- package/dist/types/client/api/admin.d.ts +11 -0
- package/dist/types/client/api/auth.d.ts +375 -0
- package/dist/types/client/api/authentication.d.ts +2 -0
- package/dist/types/client/api/cache.d.ts +6 -0
- package/dist/types/client/api/collaborators.d.ts +13 -0
- package/dist/types/client/api/collections.d.ts +4 -0
- package/dist/types/client/api/configuration.d.ts +10 -0
- package/dist/types/client/api/dashboard.d.ts +2 -0
- package/dist/types/client/api/entries.d.ts +14 -0
- package/dist/types/client/api/entry-write.d.ts +3394 -0
- package/dist/types/client/api/fixed-file.d.ts +11 -0
- package/dist/types/client/api/index.d.ts +8 -0
- package/dist/types/client/api/local-account.d.ts +1 -0
- package/dist/types/client/api/media.d.ts +38 -0
- package/dist/types/client/api/reference.d.ts +7 -0
- package/dist/types/client/api/repositories.d.ts +1 -0
- package/dist/types/client/api/repository-search.d.ts +6 -0
- package/dist/types/client/api/repository.d.ts +14 -0
- package/dist/types/client/queries/admin.d.ts +179 -0
- package/dist/types/client/queries/content.d.ts +2012 -0
- package/dist/types/client/queries/file-history.d.ts +13 -0
- package/dist/types/client/queries/keys.d.ts +32 -0
- package/dist/types/client/queries/references.d.ts +59 -0
- package/dist/types/client/queries/repository-invalidation.d.ts +7 -0
- package/dist/types/client/queries/repository.d.ts +271 -0
- package/dist/types/client/queries/session.d.ts +116 -0
- package/dist/types/client.d.ts +1 -0
- package/dist/types/components/action-history-menu.d.ts +11 -0
- package/dist/types/components/code-editor-language.d.ts +1 -0
- package/dist/types/components/code-editor.d.ts +23 -0
- package/dist/types/components/code-field.d.ts +10 -0
- package/dist/types/components/collaborator-identity.d.ts +5 -0
- package/dist/types/components/collaborator-invite-input.d.ts +8 -0
- package/dist/types/components/collaborators-loading.d.ts +2 -0
- package/dist/types/components/collection-entry-creator.d.ts +14 -0
- package/dist/types/components/component-preloading.d.ts +1 -0
- package/dist/types/components/content-entry-editor.d.ts +20 -0
- package/dist/types/components/content-entry-skeleton.d.ts +4 -0
- package/dist/types/components/content-icon.d.ts +8 -0
- package/dist/types/components/dropdown-loading-row.d.ts +5 -0
- package/dist/types/components/editor-layout.d.ts +5 -0
- package/dist/types/components/editor-skeleton.d.ts +4 -0
- package/dist/types/components/error-alert.d.ts +6 -0
- package/dist/types/components/file-editor-history.d.ts +4 -0
- package/dist/types/components/file-editor-menu.d.ts +12 -0
- package/dist/types/components/github-icon.d.ts +2 -0
- package/dist/types/components/gradient-avatar-fallback.d.ts +4 -0
- package/dist/types/components/media-file-icon.d.ts +4 -0
- package/dist/types/components/media-thumbnail.d.ts +18 -0
- package/dist/types/components/operation-error.d.ts +18 -0
- package/dist/types/components/option-combobox.d.ts +24 -0
- package/dist/types/components/otp-verification-form.d.ts +13 -0
- package/dist/types/components/repository-action-buttons.d.ts +24 -0
- package/dist/types/components/repository-breadcrumb.d.ts +11 -0
- package/dist/types/components/repository-page-header.d.ts +15 -0
- package/dist/types/components/repository-shell.d.ts +26 -0
- package/dist/types/components/rich-text-field.d.ts +13 -0
- package/dist/types/components/root-error.d.ts +2 -0
- package/dist/types/components/search-input.d.ts +7 -0
- package/dist/types/components/settings-back-link.d.ts +4 -0
- package/dist/types/components/settings-layout.d.ts +17 -0
- package/dist/types/components/settings-loading.d.ts +2 -0
- package/dist/types/components/settings-row.d.ts +2 -0
- package/dist/types/components/sign-in-form.d.ts +6 -0
- package/dist/types/components/startup-error.d.ts +1 -0
- package/dist/types/components/structured-content-field.d.ts +23 -0
- package/dist/types/components/table-pager.d.ts +9 -0
- package/dist/types/components/ui/alert-dialog.d.ts +18 -0
- package/dist/types/components/ui/alert.d.ts +10 -0
- package/dist/types/components/ui/avatar.d.ts +12 -0
- package/dist/types/components/ui/badge.d.ts +9 -0
- package/dist/types/components/ui/breadcrumb.d.ts +11 -0
- package/dist/types/components/ui/button-group.d.ts +11 -0
- package/dist/types/components/ui/button.d.ts +10 -0
- package/dist/types/components/ui/card.d.ts +11 -0
- package/dist/types/components/ui/checkbox.d.ts +4 -0
- package/dist/types/components/ui/collapsible.d.ts +5 -0
- package/dist/types/components/ui/combobox.d.ts +27 -0
- package/dist/types/components/ui/command.d.ts +18 -0
- package/dist/types/components/ui/dialog.d.ts +17 -0
- package/dist/types/components/ui/dropdown-menu.d.ts +29 -0
- package/dist/types/components/ui/editor/blockquote.d.ts +3 -0
- package/dist/types/components/ui/editor/document.d.ts +6 -0
- package/dist/types/components/ui/editor/html-policy.d.ts +20 -0
- package/dist/types/components/ui/editor/image.d.ts +12 -0
- package/dist/types/components/ui/editor/index.d.ts +52 -0
- package/dist/types/components/ui/editor/preserve.d.ts +39 -0
- package/dist/types/components/ui/editor/slash-command/commands-list.d.ts +24 -0
- package/dist/types/components/ui/editor/slash-command/commands.d.ts +14 -0
- package/dist/types/components/ui/editor/slash-command/suggestion.d.ts +42 -0
- package/dist/types/components/ui/empty.d.ts +11 -0
- package/dist/types/components/ui/field.d.ts +24 -0
- package/dist/types/components/ui/input-group.d.ts +16 -0
- package/dist/types/components/ui/input-otp.d.ts +11 -0
- package/dist/types/components/ui/input.d.ts +3 -0
- package/dist/types/components/ui/label.d.ts +4 -0
- package/dist/types/components/ui/pagination.d.ts +17 -0
- package/dist/types/components/ui/popover.d.ts +10 -0
- package/dist/types/components/ui/progress.d.ts +4 -0
- package/dist/types/components/ui/radio-group.d.ts +5 -0
- package/dist/types/components/ui/scroll-area.d.ts +5 -0
- package/dist/types/components/ui/select.d.ts +15 -0
- package/dist/types/components/ui/separator.d.ts +4 -0
- package/dist/types/components/ui/sheet.d.ts +14 -0
- package/dist/types/components/ui/sidebar.d.ts +69 -0
- package/dist/types/components/ui/skeleton.d.ts +2 -0
- package/dist/types/components/ui/sonner.d.ts +3 -0
- package/dist/types/components/ui/spinner.d.ts +3 -0
- package/dist/types/components/ui/switch.d.ts +6 -0
- package/dist/types/components/ui/table.d.ts +19 -0
- package/dist/types/components/ui/tabs.d.ts +11 -0
- package/dist/types/components/ui/textarea.d.ts +3 -0
- package/dist/types/components/ui/toggle-group.d.ts +10 -0
- package/dist/types/components/ui/toggle.d.ts +9 -0
- package/dist/types/components/ui/tooltip.d.ts +7 -0
- package/dist/types/deployment/builtins/resend-email.server.d.ts +2 -0
- package/dist/types/deployment/conformance/media-storage.d.ts +15 -0
- package/dist/types/deployment/contracts/client.d.ts +17 -0
- package/dist/types/deployment/contracts/server.server.d.ts +15 -0
- package/dist/types/deployment/contracts/version.d.ts +4 -0
- package/dist/types/deployment/default/client.d.ts +2 -0
- package/dist/types/deployment/default/server.server.d.ts +2 -0
- package/dist/types/features/account/account-copy.d.ts +11 -0
- package/dist/types/features/account/account-deleted-notice.d.ts +3 -0
- package/dist/types/features/account/account-menu.d.ts +7 -0
- package/dist/types/features/account/account-messages.d.ts +2 -0
- package/dist/types/features/account/app-header.d.ts +6 -0
- package/dist/types/features/account/content-editing-preferences.d.ts +3 -0
- package/dist/types/features/account/delete-account.d.ts +6 -0
- package/dist/types/features/account/language-field.d.ts +6 -0
- package/dist/types/features/account/language-preference.d.ts +4 -0
- package/dist/types/features/account/local-account-data.d.ts +1 -0
- package/dist/types/features/account/local-account-storage.d.ts +8 -0
- package/dist/types/features/account/profile-editor.d.ts +51 -0
- package/dist/types/features/account/profile-fields.d.ts +17 -0
- package/dist/types/features/account/profile-loading.d.ts +1 -0
- package/dist/types/features/account/profile-picture.d.ts +13 -0
- package/dist/types/features/account/profile-settings.d.ts +8 -0
- package/dist/types/features/account/profile-setup-heading.d.ts +1 -0
- package/dist/types/features/account/profile-setup.d.ts +5 -0
- package/dist/types/features/account/require-profile.d.ts +6 -0
- package/dist/types/features/account/sign-in-layout.d.ts +5 -0
- package/dist/types/features/account/sign-in-page.d.ts +9 -0
- package/dist/types/features/account/theme-preference.d.ts +1 -0
- package/dist/types/features/account/use-account-preferences.d.ts +14 -0
- package/dist/types/features/account/use-profile-editor.d.ts +41 -0
- package/dist/types/features/account/use-profile-update.d.ts +19 -0
- package/dist/types/features/activity/activity-feed-item.d.ts +7 -0
- package/dist/types/features/activity/activity-feed-skeleton.d.ts +1 -0
- package/dist/types/features/activity/activity-feed.d.ts +11 -0
- package/dist/types/features/activity/activity-query.d.ts +5 -0
- package/dist/types/features/admin/action-run-status.d.ts +5 -0
- package/dist/types/features/admin/actions-page.d.ts +9 -0
- package/dist/types/features/admin/actions-skeleton.d.ts +1 -0
- package/dist/types/features/admin/admin-loading.d.ts +5 -0
- package/dist/types/features/admin/admin-page.d.ts +2 -0
- package/dist/types/features/admin/allowlist-table.d.ts +12 -0
- package/dist/types/features/admin/cache-copy.d.ts +4 -0
- package/dist/types/features/admin/cache-files-trigger.d.ts +1 -0
- package/dist/types/features/admin/cache-files.d.ts +6 -0
- package/dist/types/features/admin/cache-page.d.ts +6 -0
- package/dist/types/features/admin/cache-skeleton.d.ts +1 -0
- package/dist/types/features/admin/collaborators-page.d.ts +6 -0
- package/dist/types/features/admin/collaborators-skeleton.d.ts +2 -0
- package/dist/types/features/admin/configuration-contribution.d.ts +5 -0
- package/dist/types/features/admin/configuration-page.d.ts +9 -0
- package/dist/types/features/admin/configuration-setup.d.ts +1 -0
- package/dist/types/features/admin/configuration-skeleton.d.ts +1 -0
- package/dist/types/features/admin/plugin-page.d.ts +14 -0
- package/dist/types/features/admin/repository-actions-page.d.ts +1 -0
- package/dist/types/features/admin/repository-admin-access.d.ts +6 -0
- package/dist/types/features/admin/repository-admin-page.d.ts +12 -0
- package/dist/types/features/admin/repository-configuration-page.d.ts +1 -0
- package/dist/types/features/admin/sign-in-allowlist.d.ts +1 -0
- package/dist/types/features/admin/use-action-run-tracking.d.ts +5 -0
- package/dist/types/features/collaborators/collaborator-status.d.ts +4 -0
- package/dist/types/features/collaborators/collaborators-contribution.d.ts +5 -0
- package/dist/types/features/collections/collection-cell.d.ts +25 -0
- package/dist/types/features/collections/collection-header.d.ts +28 -0
- package/dist/types/features/collections/collection-model.d.ts +32 -0
- package/dist/types/features/collections/collection-page.d.ts +4 -0
- package/dist/types/features/collections/collection-skeleton.d.ts +1 -0
- package/dist/types/features/collections/collection-table-layout.d.ts +18 -0
- package/dist/types/features/collections/collection-table.d.ts +44 -0
- package/dist/types/features/content/content-mutations.d.ts +78 -0
- package/dist/types/features/content/use-entry-actions.d.ts +100 -0
- package/dist/types/features/dashboard/about-dialog.d.ts +2 -0
- package/dist/types/features/dashboard/branch-manager.d.ts +8 -0
- package/dist/types/features/dashboard/branch-picker.d.ts +2 -0
- package/dist/types/features/dashboard/create-branch-dialog.d.ts +8 -0
- package/dist/types/features/dashboard/recent-repositories.d.ts +14 -0
- package/dist/types/features/dashboard/recent-repository-list.d.ts +3 -0
- package/dist/types/features/dashboard/relative-time.d.ts +1 -0
- package/dist/types/features/dashboard/repository-dashboard.d.ts +13 -0
- package/dist/types/features/dashboard/repository-loading.d.ts +10 -0
- package/dist/types/features/dashboard/repository-selector.d.ts +10 -0
- package/dist/types/features/dashboard/repository-template-preview.d.ts +8 -0
- package/dist/types/features/dashboard/repository-templates.d.ts +5 -0
- package/dist/types/features/drafts/collection-creation.d.ts +20 -0
- package/dist/types/features/drafts/draft-discard-dialog.d.ts +5 -0
- package/dist/types/features/drafts/draft-field-preview.d.ts +10 -0
- package/dist/types/features/drafts/draft-merge-dialog.d.ts +11 -0
- package/dist/types/features/drafts/draft-merge-fields.d.ts +2 -0
- package/dist/types/features/drafts/draft-read-cache.d.ts +13 -0
- package/dist/types/features/drafts/draft-save-button.d.ts +19 -0
- package/dist/types/features/drafts/draft-session.d.ts +63 -0
- package/dist/types/features/drafts/draft-store.d.ts +44 -0
- package/dist/types/features/drafts/merge-draft.d.ts +22 -0
- package/dist/types/features/drafts/relative-age.d.ts +1 -0
- package/dist/types/features/drafts/use-content-draft.d.ts +30 -0
- package/dist/types/features/drafts/use-draft-merge.d.ts +15 -0
- package/dist/types/features/drafts/use-duplicate-entry.d.ts +7 -0
- package/dist/types/features/drafts/use-review-viewport.d.ts +28 -0
- package/dist/types/features/editor/commit-message-dialog.d.ts +8 -0
- package/dist/types/features/editor/editor-component-loaders.d.ts +8 -0
- package/dist/types/features/editor/entry-breadcrumb.d.ts +28 -0
- package/dist/types/features/editor/entry-page-header.d.ts +9 -0
- package/dist/types/features/editor/entry-title.d.ts +13 -0
- package/dist/types/features/editor/field-locale-menu.d.ts +10 -0
- package/dist/types/features/editor/field-locale-values.d.ts +5 -0
- package/dist/types/features/editor/fields/core-field-renderers.d.ts +1 -0
- package/dist/types/features/editor/fields/custom-field-components.d.ts +3 -0
- package/dist/types/features/editor/fields/field-renderer-registry.d.ts +23 -0
- package/dist/types/features/editor/fields/field-types.d.ts +15 -0
- package/dist/types/features/editor/fields/field-validation.d.ts +27 -0
- package/dist/types/features/editor/fields/structured-field-options.d.ts +9 -0
- package/dist/types/features/editor/fields/use-reference-options.d.ts +14 -0
- package/dist/types/features/editor/file-locale-menu.d.ts +26 -0
- package/dist/types/features/editor/locale-context.d.ts +31 -0
- package/dist/types/features/editor/locale-selection.d.ts +13 -0
- package/dist/types/features/editor/rich-text-media.d.ts +10 -0
- package/dist/types/features/editor/start-translation-dialog.d.ts +10 -0
- package/dist/types/features/editor/translation-preferences.d.ts +8 -0
- package/dist/types/features/editor/translation-start.d.ts +13 -0
- package/dist/types/features/media/media-breadcrumb.d.ts +8 -0
- package/dist/types/features/media/media-browser.d.ts +23 -0
- package/dist/types/features/media/media-delivery.d.ts +35 -0
- package/dist/types/features/media/media-drag-overlay.d.ts +1 -0
- package/dist/types/features/media/media-entry.d.ts +21 -0
- package/dist/types/features/media/media-folder-tree.d.ts +8 -0
- package/dist/types/features/media/media-model.d.ts +22 -0
- package/dist/types/features/media/media-move-dialog.d.ts +12 -0
- package/dist/types/features/media/media-mutations.d.ts +43 -0
- package/dist/types/features/media/media-page.d.ts +6 -0
- package/dist/types/features/media/media-picker-dialog.d.ts +14 -0
- package/dist/types/features/media/media-skeleton.d.ts +6 -0
- package/dist/types/features/media/media-upload.d.ts +28 -0
- package/dist/types/features/media/media-view.d.ts +3 -0
- package/dist/types/features/media/upload-conflict-dialog.d.ts +5 -0
- package/dist/types/features/media/upload-conflicts.d.ts +47 -0
- package/dist/types/features/pending-writes/account-operation.d.ts +10 -0
- package/dist/types/features/pending-writes/pending-write.d.ts +9 -0
- package/dist/types/features/pending-writes/use-operation.d.ts +30 -0
- package/dist/types/features/plugins/standalone-plugin-page.d.ts +4 -0
- package/dist/types/features/plugins/standalone-plugin-routes.d.ts +9 -0
- package/dist/types/features/repository/configuration-required.d.ts +10 -0
- package/dist/types/features/repository/overview-entry.d.ts +6 -0
- package/dist/types/features/repository/overview-file-item.d.ts +8 -0
- package/dist/types/features/repository/overview-loading.d.ts +4 -0
- package/dist/types/features/repository/overview-local-files.d.ts +10 -0
- package/dist/types/features/repository/overview-media-upload.d.ts +8 -0
- package/dist/types/features/repository/overview-shortcuts.d.ts +11 -0
- package/dist/types/features/repository/overview.d.ts +7 -0
- package/dist/types/features/repository/repository-loading.d.ts +2 -0
- package/dist/types/features/repository/repository-route-resource.d.ts +8 -0
- package/dist/types/features/repository/repository-route-state.d.ts +4 -0
- package/dist/types/features/repository/repository-shell-loading.d.ts +1 -0
- package/dist/types/features/repository/repository-unavailable-error.d.ts +2 -0
- package/dist/types/features/repository/use-overview-files.d.ts +9 -0
- package/dist/types/features/settings/account-access-table.d.ts +8 -0
- package/dist/types/features/settings/account-settings-contribution.d.ts +4 -0
- package/dist/types/features/settings/settings-navigation.d.ts +14 -0
- package/dist/types/features/settings/shared-projects.d.ts +3 -0
- package/dist/types/features/settings/user-settings-skeleton.d.ts +5 -0
- package/dist/types/features/settings/user-settings.d.ts +1 -0
- package/dist/types/fields/definition.d.ts +23 -0
- package/dist/types/fields/registry.d.ts +2 -0
- package/dist/types/hooks/use-media-github-link.d.ts +10 -0
- package/dist/types/hooks/use-mobile.d.ts +1 -0
- package/dist/types/hooks/use-page-scrolled.d.ts +1 -0
- package/dist/types/hooks/use-repository-coordinates.d.ts +7 -0
- package/dist/types/hooks/use-repository-github-link.d.ts +2 -0
- package/dist/types/hooks/use-route-retry.d.ts +5 -0
- package/dist/types/hooks/use-sidebar-scroll.d.ts +5 -0
- package/dist/types/hooks/use-unsaved-warning.d.ts +1 -0
- package/dist/types/i18n/catalogs.d.ts +3 -0
- package/dist/types/i18n/dates.d.ts +3 -0
- package/dist/types/i18n/document-title.d.ts +10 -0
- package/dist/types/i18n/error-catalogs.d.ts +4 -0
- package/dist/types/i18n/errors.d.ts +13 -0
- package/dist/types/i18n/known-errors.d.ts +2 -0
- package/dist/types/i18n/locale.d.ts +6 -0
- package/dist/types/i18n/localized-error.d.ts +4 -0
- package/dist/types/i18n/localized-route-head.d.ts +5 -0
- package/dist/types/i18n/message.d.ts +8 -0
- package/dist/types/i18n/plugin-catalogs.d.ts +3 -0
- package/dist/types/i18n/test-provider.d.ts +4 -0
- package/dist/types/integrations/tanstack-query/devtools.d.ts +5 -0
- package/dist/types/integrations/tanstack-query/root-provider.d.ts +4 -0
- package/dist/types/lib/access-denial.d.ts +10 -0
- package/dist/types/lib/action-run-tracker.d.ts +34 -0
- package/dist/types/lib/action-run-tracking.d.ts +9 -0
- package/dist/types/lib/actions.d.ts +31 -0
- package/dist/types/lib/activity.d.ts +23 -0
- package/dist/types/lib/auth-error.d.ts +1 -0
- package/dist/types/lib/auth-redirect.d.ts +2 -0
- package/dist/types/lib/authentication.d.ts +20 -0
- package/dist/types/lib/avatar-gradient.d.ts +1 -0
- package/dist/types/lib/base64.d.ts +3 -0
- package/dist/types/lib/cn.d.ts +1 -0
- package/dist/types/lib/collaborator-invites.d.ts +4 -0
- package/dist/types/lib/collaborator-key.d.ts +2 -0
- package/dist/types/lib/collaborator-status.d.ts +1 -0
- package/dist/types/lib/commit-message.d.ts +27 -0
- package/dist/types/lib/component-loader.d.ts +2 -0
- package/dist/types/lib/component-preloading.d.ts +11 -0
- package/dist/types/lib/configuration-completion.d.ts +10 -0
- package/dist/types/lib/content-field-values.d.ts +8 -0
- package/dist/types/lib/content-field.d.ts +2 -0
- package/dist/types/lib/content-filename.d.ts +6 -0
- package/dist/types/lib/content-icon-loader.d.ts +2 -0
- package/dist/types/lib/content-operations.d.ts +15 -0
- package/dist/types/lib/content-validation.d.ts +5 -0
- package/dist/types/lib/core-route-paths.d.ts +2 -0
- package/dist/types/lib/date-field.d.ts +4 -0
- package/dist/types/lib/deferred-component.d.ts +8 -0
- package/dist/types/lib/field-value-shapes.d.ts +11 -0
- package/dist/types/lib/field-values.d.ts +9 -0
- package/dist/types/lib/file-history.d.ts +2 -0
- package/dist/types/lib/file-types.d.ts +13 -0
- package/dist/types/lib/i18n-media.d.ts +4 -0
- package/dist/types/lib/i18n-schema.d.ts +44 -0
- package/dist/types/lib/i18n-values.d.ts +21 -0
- package/dist/types/lib/i18n.d.ts +43 -0
- package/dist/types/lib/icon-name.d.ts +1 -0
- package/dist/types/lib/markdown-images.d.ts +2 -0
- package/dist/types/lib/media-assets.d.ts +9 -0
- package/dist/types/lib/media-field-values.d.ts +20 -0
- package/dist/types/lib/media-upload-name.d.ts +3 -0
- package/dist/types/lib/media-variants.d.ts +4 -0
- package/dist/types/lib/notifications.d.ts +16 -0
- package/dist/types/lib/operation-error.d.ts +3 -0
- package/dist/types/lib/page-title.d.ts +9 -0
- package/dist/types/lib/profile.d.ts +6 -0
- package/dist/types/lib/reference-pages.d.ts +12 -0
- package/dist/types/lib/repository-identity.d.ts +18 -0
- package/dist/types/lib/repository-page-path.d.ts +4 -0
- package/dist/types/lib/repository.d.ts +13 -0
- package/dist/types/lib/select-options.d.ts +4 -0
- package/dist/types/lib/use-raw-search.d.ts +2 -0
- package/dist/types/package/cli.d.ts +2 -0
- package/dist/types/package/cloudflare-project-routes.d.ts +2 -0
- package/dist/types/package/config.d.ts +41 -0
- package/dist/types/package/configured-icons.d.ts +2 -0
- package/dist/types/package/constants.d.ts +2 -0
- package/dist/types/package/deploy-config.d.ts +1 -0
- package/dist/types/package/generate.d.ts +10 -0
- package/dist/types/package/icon-path.d.ts +2 -0
- package/dist/types/package/load.d.ts +1 -0
- package/dist/types/package/migrate.d.ts +31 -0
- package/dist/types/package/node-middleware.d.ts +7 -0
- package/dist/types/package/runtime.d.ts +20 -0
- package/dist/types/package/runtime.server.d.ts +11 -0
- package/dist/types/package/serve.d.ts +5 -0
- package/dist/types/package/server-entry.d.ts +1 -0
- package/dist/types/package/smtp.d.ts +9 -0
- package/dist/types/package/smtp.server.d.ts +2 -0
- package/dist/types/package/vite.d.ts +23 -0
- package/dist/types/plugins/client.d.ts +129 -0
- package/dist/types/plugins/compose.server.d.ts +30 -0
- package/dist/types/plugins/email/cloudflare.server.d.ts +6 -0
- package/dist/types/plugins/email/resend.server.d.ts +2 -0
- package/dist/types/plugins/email/smtp.server.d.ts +15 -0
- package/dist/types/plugins/identity.d.ts +4 -0
- package/dist/types/plugins/server.d.ts +83 -0
- package/dist/types/routeTree.gen.d.ts +592 -0
- package/dist/types/router.d.ts +6 -0
- package/dist/types/routes/__root.d.ts +8 -0
- package/dist/types/routes/admin.d.ts +17 -0
- package/dist/types/routes/auth.error.d.ts +4 -0
- package/dist/types/routes/auth.redirect.d.ts +5 -0
- package/dist/types/routes/github.$owner.$repo.$branch.$page.d.ts +11 -0
- package/dist/types/routes/github.$owner.$repo.$branch.actions.d.ts +13 -0
- package/dist/types/routes/github.$owner.$repo.$branch.cache.d.ts +11 -0
- package/dist/types/routes/github.$owner.$repo.$branch.collaborators.d.ts +11 -0
- package/dist/types/routes/github.$owner.$repo.$branch.collection.$name.d.ts +90 -0
- package/dist/types/routes/github.$owner.$repo.$branch.collection.$name_.edit.$.d.ts +11 -0
- package/dist/types/routes/github.$owner.$repo.$branch.collection.$name_.entry.$.d.ts +15 -0
- package/dist/types/routes/github.$owner.$repo.$branch.collection.$name_.new.d.ts +28 -0
- package/dist/types/routes/github.$owner.$repo.$branch.configuration.d.ts +11 -0
- package/dist/types/routes/github.$owner.$repo.$branch.d.ts +6 -0
- package/dist/types/routes/github.$owner.$repo.$branch.file.$name.d.ts +19 -0
- package/dist/types/routes/github.$owner.$repo.$branch.index.d.ts +32 -0
- package/dist/types/routes/github.$owner.$repo.$branch.media.$name.d.ts +14 -0
- package/dist/types/routes/github.$owner.$repo.index.d.ts +7 -0
- package/dist/types/routes/index.d.ts +11 -0
- package/dist/types/routes/onboarding.d.ts +7 -0
- package/dist/types/routes/settings.d.ts +1 -0
- package/dist/types/routes/sign-in.d.ts +11 -0
- package/dist/types/server/access/policy.d.ts +108 -0
- package/dist/types/server/access/repository-identity-policy.d.ts +3 -0
- package/dist/types/server/access/repository-identity.d.ts +65 -0
- package/dist/types/server/access/repository-policy.d.ts +33 -0
- package/dist/types/server/access/repository.d.ts +230 -0
- package/dist/types/server/account/account.d.ts +39 -0
- package/dist/types/server/account/deletion.d.ts +15 -0
- package/dist/types/server/account/preferences.d.ts +6 -0
- package/dist/types/server/actions/actions.d.ts +152 -0
- package/dist/types/server/activity/capture.d.ts +33 -0
- package/dist/types/server/activity/details.d.ts +23 -0
- package/dist/types/server/activity/store.d.ts +50 -0
- package/dist/types/server/activity/webhook.d.ts +4 -0
- package/dist/types/server/admin/access.d.ts +4 -0
- package/dist/types/server/admin/admin.d.ts +43 -0
- package/dist/types/server/admin/sign-in-allowlist.d.ts +16 -0
- package/dist/types/server/auth/index.d.ts +751 -0
- package/dist/types/server/auth/oauth-account.d.ts +23 -0
- package/dist/types/server/auth/oauth-token-adapter.d.ts +2 -0
- package/dist/types/server/auth/oauth-token-crypto.d.ts +7 -0
- package/dist/types/server/auth/rate-limit.d.ts +3 -0
- package/dist/types/server/auth/secret-crypto.d.ts +5 -0
- package/dist/types/server/auth/sign-in-allowlist.d.ts +4 -0
- package/dist/types/server/cache/configuration-access.d.ts +33 -0
- package/dist/types/server/cache/configuration-read.d.ts +5 -0
- package/dist/types/server/cache/configuration.d.ts +67 -0
- package/dist/types/server/cache/directory-store.d.ts +35 -0
- package/dist/types/server/cache/directory.d.ts +65 -0
- package/dist/types/server/cache/policy.d.ts +14 -0
- package/dist/types/server/cache/repository-read.d.ts +3 -0
- package/dist/types/server/cache/repository.d.ts +30 -0
- package/dist/types/server/collaborators/api.d.ts +2 -0
- package/dist/types/server/collaborators/branches.d.ts +7 -0
- package/dist/types/server/collaborators/collaborators.d.ts +90 -0
- package/dist/types/server/collaborators/membership-match.d.ts +5 -0
- package/dist/types/server/collaborators/shared-projects.d.ts +13 -0
- package/dist/types/server/content/collection.d.ts +67 -0
- package/dist/types/server/content/conflict.d.ts +1 -0
- package/dist/types/server/content/entry-editor.d.ts +2308 -0
- package/dist/types/server/content/localized-directory.d.ts +7 -0
- package/dist/types/server/content/reference.d.ts +26 -0
- package/dist/types/server/content/write-response.d.ts +7 -0
- package/dist/types/server/context-cloudflare.d.ts +1053 -0
- package/dist/types/server/context-node.d.ts +1054 -0
- package/dist/types/server/context.d.ts +1097 -0
- package/dist/types/server/csrf.d.ts +2 -0
- package/dist/types/server/db/client.d.ts +10 -0
- package/dist/types/server/db/core.d.ts +27 -0
- package/dist/types/server/db/schema.d.ts +3270 -0
- package/dist/types/server/db/sql.d.ts +8 -0
- package/dist/types/server/email/email.d.ts +15 -0
- package/dist/types/server/email/templates.d.ts +36 -0
- package/dist/types/server/email/translations.d.ts +121 -0
- package/dist/types/server/github/account.d.ts +7 -0
- package/dist/types/server/github/api.d.ts +211 -0
- package/dist/types/server/github/app-install.d.ts +2 -0
- package/dist/types/server/github/app.d.ts +21 -0
- package/dist/types/server/github/installation-token-cache.d.ts +5 -0
- package/dist/types/server/github/large-collection.d.ts +2 -0
- package/dist/types/server/github/webhook-response.d.ts +2 -0
- package/dist/types/server/github/webhook.d.ts +37 -0
- package/dist/types/server/http.d.ts +7 -0
- package/dist/types/server/index.d.ts +5 -0
- package/dist/types/server/media/media.d.ts +145 -0
- package/dist/types/server/media/preview.d.ts +8 -0
- package/dist/types/server/media/provider.d.ts +233 -0
- package/dist/types/server/repository/activity.d.ts +2 -0
- package/dist/types/server/repository/branches.d.ts +12 -0
- package/dist/types/server/repository/provider.d.ts +161 -0
- package/dist/types/server/repository/repositories.d.ts +55 -0
- package/dist/types/server/request-body.d.ts +4 -0
- package/dist/types/server/routes/account.d.ts +4 -0
- package/dist/types/server/routes/actions.d.ts +4 -0
- package/dist/types/server/routes/activity.d.ts +4 -0
- package/dist/types/server/routes/admin.d.ts +4 -0
- package/dist/types/server/routes/app-version.d.ts +1 -0
- package/dist/types/server/routes/auth.d.ts +4 -0
- package/dist/types/server/routes/cache.d.ts +4 -0
- package/dist/types/server/routes/collaborators.d.ts +4 -0
- package/dist/types/server/routes/configuration.d.ts +4 -0
- package/dist/types/server/routes/entries.d.ts +4 -0
- package/dist/types/server/routes/health.d.ts +6 -0
- package/dist/types/server/routes/index.d.ts +3 -0
- package/dist/types/server/routes/media.d.ts +4 -0
- package/dist/types/server/routes/plugin-request.d.ts +3 -0
- package/dist/types/server/routes/plugins.d.ts +4 -0
- package/dist/types/server/routes/repositories.d.ts +4 -0
- package/dist/types/server/routes/shared.d.ts +16 -0
- package/dist/types/server/routes/webhooks.d.ts +4 -0
- package/dist/types/server/runtime/runtime-ports.d.ts +4 -0
- package/dist/types/server/runtime-config.d.ts +41 -0
- package/dist/types/server/services/account-language.d.ts +3 -0
- package/dist/types/server/services/account.d.ts +41 -0
- package/dist/types/server/services/actions.d.ts +107 -0
- package/dist/types/server/services/activity.d.ts +51 -0
- package/dist/types/server/services/admin.d.ts +61 -0
- package/dist/types/server/services/authentication-state.d.ts +3 -0
- package/dist/types/server/services/cache-management.d.ts +41 -0
- package/dist/types/server/services/cache.d.ts +25 -0
- package/dist/types/server/services/collaborators.d.ts +22 -0
- package/dist/types/server/services/configuration-editor.d.ts +36 -0
- package/dist/types/server/services/configuration.d.ts +20 -0
- package/dist/types/server/services/content.d.ts +4764 -0
- package/dist/types/server/services/context.d.ts +37 -0
- package/dist/types/server/services/dashboard.d.ts +20 -0
- package/dist/types/server/services/entry-translations.d.ts +9 -0
- package/dist/types/server/services/errors.d.ts +14 -0
- package/dist/types/server/services/index.d.ts +12 -0
- package/dist/types/server/services/local-account-data.d.ts +4 -0
- package/dist/types/server/services/media.d.ts +96 -0
- package/dist/types/server/services/reference.d.ts +10 -0
- package/dist/types/server/services/repository.d.ts +40 -0
- package/dist/types/shared/account-preferences.d.ts +13 -0
- package/dist/types/shared/application-operations.d.ts +2 -0
- package/dist/types/shared/collection-presentation.d.ts +13 -0
- package/dist/types/shared/configuration-compatibility.d.ts +10 -0
- package/dist/types/shared/configuration-components.d.ts +4 -0
- package/dist/types/shared/configuration-content.d.ts +21 -0
- package/dist/types/shared/configuration-discovery.d.ts +3 -0
- package/dist/types/shared/configuration-names.d.ts +7 -0
- package/dist/types/shared/configuration-navigation.d.ts +25 -0
- package/dist/types/shared/configuration-schema.d.ts +653 -0
- package/dist/types/shared/configuration-settings.d.ts +4 -0
- package/dist/types/shared/configuration-source.d.ts +17 -0
- package/dist/types/shared/configuration-yaml.d.ts +23 -0
- package/dist/types/shared/configuration.d.ts +4 -0
- package/dist/types/shared/content-conflict.d.ts +2 -0
- package/dist/types/shared/content-serialization.d.ts +18 -0
- package/dist/types/shared/field-validation-error.d.ts +3 -0
- package/dist/types/shared/git-path.d.ts +11 -0
- package/dist/types/shared/json.d.ts +13 -0
- package/dist/types/shared/media-error.d.ts +9 -0
- package/dist/types/shared/repository-search.d.ts +5 -0
- package/dist/types/shared/repository-templates.d.ts +17 -0
- package/dist/types/shared/requests/account.d.ts +16 -0
- package/dist/types/shared/requests/action.d.ts +52 -0
- package/dist/types/shared/requests/activity.d.ts +7 -0
- package/dist/types/shared/requests/admin.d.ts +35 -0
- package/dist/types/shared/requests/branch.d.ts +7 -0
- package/dist/types/shared/requests/cache.d.ts +22 -0
- package/dist/types/shared/requests/collaborator.d.ts +20 -0
- package/dist/types/shared/requests/collection.d.ts +10 -0
- package/dist/types/shared/requests/configuration.d.ts +21 -0
- package/dist/types/shared/requests/entry-write.d.ts +108 -0
- package/dist/types/shared/requests/entry.d.ts +17 -0
- package/dist/types/shared/requests/fixed-file.d.ts +8 -0
- package/dist/types/shared/requests/local-account.d.ts +4 -0
- package/dist/types/shared/requests/media.d.ts +135 -0
- package/dist/types/shared/requests/reference.d.ts +14 -0
- package/dist/types/shared/requests/repository-template.d.ts +6 -0
- package/dist/types/shared/requests/repository.d.ts +6 -0
- package/dist/types/shared/requests/ui-language.d.ts +4 -0
- package/dist/types/shared/sign-in-allowlist.d.ts +18 -0
- package/dist/types/shared/yaml-aliases.d.ts +1 -0
- package/docs/public/configuration/actions.md +160 -0
- package/docs/public/configuration/components.md +56 -0
- package/docs/public/configuration/content/filename.md +63 -0
- package/docs/public/configuration/content/formats.md +63 -0
- package/docs/public/configuration/content/index.md +138 -0
- package/docs/public/configuration/content/view.md +50 -0
- package/docs/public/configuration/fields/block.md +62 -0
- package/docs/public/configuration/fields/boolean.md +22 -0
- package/docs/public/configuration/fields/code.md +29 -0
- package/docs/public/configuration/fields/date.md +35 -0
- package/docs/public/configuration/fields/file.md +34 -0
- package/docs/public/configuration/fields/image.md +48 -0
- package/docs/public/configuration/fields/index.md +130 -0
- package/docs/public/configuration/fields/number.md +28 -0
- package/docs/public/configuration/fields/object.md +63 -0
- package/docs/public/configuration/fields/reference.md +64 -0
- package/docs/public/configuration/fields/rich-text.md +126 -0
- package/docs/public/configuration/fields/select.md +48 -0
- package/docs/public/configuration/fields/string.md +31 -0
- package/docs/public/configuration/fields/text.md +30 -0
- package/docs/public/configuration/fields/uuid.md +28 -0
- package/docs/public/configuration/index.md +88 -0
- package/docs/public/configuration/localization.md +138 -0
- package/docs/public/configuration/media.md +77 -0
- package/docs/public/configuration/settings.md +85 -0
- package/docs/public/docs.json +119 -0
- package/docs/public/extending/custom-field.md +107 -0
- package/docs/public/extending/field-api.md +71 -0
- package/docs/public/extending/plugins.md +67 -0
- package/docs/public/guides/actions.md +14 -0
- package/docs/public/guides/collaborators.md +43 -0
- package/docs/public/guides/editing.md +36 -0
- package/docs/public/guides/media.md +24 -0
- package/docs/public/guides/translations.md +40 -0
- package/docs/public/how-it-works.md +33 -0
- package/docs/public/index.md +25 -0
- package/docs/public/quick-start.md +87 -0
- package/docs/public/reference.md +84 -0
- package/docs/public/self-hosting/cloudflare.md +62 -0
- package/docs/public/self-hosting/environment-variables.md +84 -0
- package/docs/public/self-hosting/github-app.md +54 -0
- package/docs/public/self-hosting/index.md +44 -0
- package/docs/public/self-hosting/netlify.md +41 -0
- package/docs/public/self-hosting/node.md +42 -0
- package/docs/public/self-hosting/upgrading.md +44 -0
- package/docs/public/self-hosting/vercel.md +41 -0
- package/drizzle/0000_wet_overlord.sql +268 -0
- package/drizzle/meta/0000_snapshot.json +1858 -0
- package/drizzle/meta/_journal.json +13 -0
- package/index.html +53 -0
- package/package.json +368 -3
- package/public/_headers +7 -0
- package/public/favicon.ico +0 -0
- package/public/favicon.svg +16 -0
- package/public/images/astro-blog-template.webp +0 -0
- package/public/images/eleventy-blog-template.webp +0 -0
- package/public/images/email-logo.png +0 -0
- package/public/images/nextjs-blog-template.webp +0 -0
- package/public/images/social-card.png +0 -0
- package/public/reference/docs/configuration/actions.md +160 -0
- package/public/reference/docs/configuration/components.md +56 -0
- package/public/reference/docs/configuration/content/filename.md +63 -0
- package/public/reference/docs/configuration/content/formats.md +63 -0
- package/public/reference/docs/configuration/content/index.md +138 -0
- package/public/reference/docs/configuration/content/view.md +50 -0
- package/public/reference/docs/configuration/fields/block.md +62 -0
- package/public/reference/docs/configuration/fields/boolean.md +22 -0
- package/public/reference/docs/configuration/fields/code.md +29 -0
- package/public/reference/docs/configuration/fields/date.md +35 -0
- package/public/reference/docs/configuration/fields/file.md +34 -0
- package/public/reference/docs/configuration/fields/image.md +48 -0
- package/public/reference/docs/configuration/fields/index.md +130 -0
- package/public/reference/docs/configuration/fields/number.md +28 -0
- package/public/reference/docs/configuration/fields/object.md +63 -0
- package/public/reference/docs/configuration/fields/reference.md +64 -0
- package/public/reference/docs/configuration/fields/rich-text.md +126 -0
- package/public/reference/docs/configuration/fields/select.md +48 -0
- package/public/reference/docs/configuration/fields/string.md +31 -0
- package/public/reference/docs/configuration/fields/text.md +30 -0
- package/public/reference/docs/configuration/fields/uuid.md +28 -0
- package/public/reference/docs/configuration/index.md +88 -0
- package/public/reference/docs/configuration/localization.md +138 -0
- package/public/reference/docs/configuration/media.md +77 -0
- package/public/reference/docs/configuration/settings.md +85 -0
- package/public/reference/docs/extending/custom-field.md +107 -0
- package/public/reference/docs/extending/field-api.md +71 -0
- package/public/reference/docs/extending/plugins.md +67 -0
- package/public/reference/docs/guides/actions.md +14 -0
- package/public/reference/docs/guides/collaborators.md +43 -0
- package/public/reference/docs/guides/editing.md +36 -0
- package/public/reference/docs/guides/media.md +24 -0
- package/public/reference/docs/guides/translations.md +40 -0
- package/public/reference/docs/how-it-works.md +33 -0
- package/public/reference/docs/index.md +25 -0
- package/public/reference/docs/quick-start.md +87 -0
- package/public/reference/docs/reference.md +84 -0
- package/public/reference/docs/self-hosting/cloudflare.md +62 -0
- package/public/reference/docs/self-hosting/environment-variables.md +84 -0
- package/public/reference/docs/self-hosting/github-app.md +54 -0
- package/public/reference/docs/self-hosting/index.md +44 -0
- package/public/reference/docs/self-hosting/netlify.md +41 -0
- package/public/reference/docs/self-hosting/node.md +42 -0
- package/public/reference/docs/self-hosting/upgrading.md +44 -0
- package/public/reference/docs/self-hosting/vercel.md +41 -0
- package/public/reference/docs.json +119 -0
- package/public/reference/manifest.json +190 -0
- package/public/reference.md +79 -0
- package/scripts/collaborators.mjs +470 -0
- package/scripts/setup-github-app.mjs +837 -0
- package/src/client/api/account.ts +48 -0
- package/src/client/api/actions.ts +53 -0
- package/src/client/api/activity.ts +17 -0
- package/src/client/api/admin.ts +25 -0
- package/src/client/api/auth.ts +8 -0
- package/src/client/api/authentication.ts +8 -0
- package/src/client/api/cache.ts +18 -0
- package/src/client/api/collaborators.ts +18 -0
- package/src/client/api/collections.ts +26 -0
- package/src/client/api/configuration.ts +38 -0
- package/src/client/api/dashboard.ts +6 -0
- package/src/client/api/entries.ts +53 -0
- package/src/client/api/entry-write.ts +54 -0
- package/src/client/api/fixed-file.ts +23 -0
- package/src/client/api/index.ts +98 -0
- package/src/client/api/local-account.ts +5 -0
- package/src/client/api/media.ts +62 -0
- package/src/client/api/reference.ts +9 -0
- package/src/client/api/repositories.ts +7 -0
- package/src/client/api/repository-search.ts +18 -0
- package/src/client/api/repository.ts +39 -0
- package/src/client/queries/admin.ts +19 -0
- package/src/client/queries/content.ts +114 -0
- package/src/client/queries/file-history.ts +44 -0
- package/src/client/queries/keys.ts +56 -0
- package/src/client/queries/references.ts +124 -0
- package/src/client/queries/repository-invalidation.ts +27 -0
- package/src/client/queries/repository.ts +96 -0
- package/src/client/queries/session.ts +45 -0
- package/src/client.tsx +15 -0
- package/src/components/action-history-menu.tsx +273 -0
- package/src/components/code-editor-language.ts +29 -0
- package/src/components/code-editor.tsx +146 -0
- package/src/components/code-field.tsx +42 -0
- package/src/components/collaborator-identity.tsx +34 -0
- package/src/components/collaborator-invite-input.tsx +160 -0
- package/src/components/collaborators-loading.tsx +53 -0
- package/src/components/collection-entry-creator.tsx +558 -0
- package/src/components/component-preloading.tsx +23 -0
- package/src/components/content-entry-editor.tsx +1240 -0
- package/src/components/content-entry-skeleton.tsx +200 -0
- package/src/components/content-icon.tsx +51 -0
- package/src/components/dropdown-loading-row.tsx +19 -0
- package/src/components/editor-layout.tsx +16 -0
- package/src/components/editor-skeleton.tsx +21 -0
- package/src/components/error-alert.tsx +44 -0
- package/src/components/file-editor-history.tsx +191 -0
- package/src/components/file-editor-menu.tsx +113 -0
- package/src/components/github-icon.tsx +17 -0
- package/src/components/gradient-avatar-fallback.tsx +39 -0
- package/src/components/media-file-icon.tsx +40 -0
- package/src/components/media-thumbnail.tsx +199 -0
- package/src/components/operation-error.tsx +161 -0
- package/src/components/option-combobox.tsx +195 -0
- package/src/components/otp-verification-form.tsx +125 -0
- package/src/components/repository-action-buttons.tsx +547 -0
- package/src/components/repository-breadcrumb.tsx +169 -0
- package/src/components/repository-page-header.tsx +97 -0
- package/src/components/repository-shell.tsx +938 -0
- package/src/components/rich-text-field.tsx +324 -0
- package/src/components/root-error.tsx +77 -0
- package/src/components/search-input.tsx +37 -0
- package/src/components/settings-back-link.tsx +43 -0
- package/src/components/settings-layout.tsx +178 -0
- package/src/components/settings-loading.tsx +19 -0
- package/src/components/settings-row.ts +9 -0
- package/src/components/sign-in-form.tsx +285 -0
- package/src/components/startup-error.tsx +93 -0
- package/src/components/structured-content-field.tsx +1900 -0
- package/src/components/table-pager.tsx +62 -0
- package/src/components/ui/alert-dialog.tsx +199 -0
- package/src/components/ui/alert.tsx +78 -0
- package/src/components/ui/avatar.tsx +113 -0
- package/src/components/ui/badge.tsx +53 -0
- package/src/components/ui/breadcrumb.tsx +128 -0
- package/src/components/ui/button-group.tsx +84 -0
- package/src/components/ui/button.tsx +67 -0
- package/src/components/ui/card.tsx +102 -0
- package/src/components/ui/checkbox.tsx +38 -0
- package/src/components/ui/collapsible.tsx +31 -0
- package/src/components/ui/combobox.tsx +336 -0
- package/src/components/ui/command.tsx +202 -0
- package/src/components/ui/dialog.tsx +174 -0
- package/src/components/ui/dropdown-menu.tsx +279 -0
- package/src/components/ui/editor/blockquote.ts +45 -0
- package/src/components/ui/editor/document.ts +29 -0
- package/src/components/ui/editor/html-policy.ts +945 -0
- package/src/components/ui/editor/image.ts +309 -0
- package/src/components/ui/editor/index.tsx +1383 -0
- package/src/components/ui/editor/preserve.ts +494 -0
- package/src/components/ui/editor/slash-command/commands-list.tsx +122 -0
- package/src/components/ui/editor/slash-command/commands.ts +66 -0
- package/src/components/ui/editor/slash-command/suggestion.tsx +305 -0
- package/src/components/ui/editor/typeset.css +1120 -0
- package/src/components/ui/empty.tsx +104 -0
- package/src/components/ui/field.tsx +246 -0
- package/src/components/ui/input-group.tsx +155 -0
- package/src/components/ui/input-otp.tsx +84 -0
- package/src/components/ui/input.tsx +18 -0
- package/src/components/ui/label.tsx +23 -0
- package/src/components/ui/pagination.tsx +153 -0
- package/src/components/ui/popover.tsx +86 -0
- package/src/components/ui/progress.tsx +29 -0
- package/src/components/ui/radio-group.tsx +41 -0
- package/src/components/ui/scroll-area.tsx +52 -0
- package/src/components/ui/select.tsx +206 -0
- package/src/components/ui/separator.tsx +25 -0
- package/src/components/ui/sheet.tsx +152 -0
- package/src/components/ui/sidebar.tsx +693 -0
- package/src/components/ui/skeleton.tsx +14 -0
- package/src/components/ui/sonner.tsx +88 -0
- package/src/components/ui/spinner.tsx +24 -0
- package/src/components/ui/switch.tsx +32 -0
- package/src/components/ui/table.tsx +165 -0
- package/src/components/ui/tabs.tsx +88 -0
- package/src/components/ui/textarea.tsx +17 -0
- package/src/components/ui/toggle-group.tsx +89 -0
- package/src/components/ui/toggle.tsx +47 -0
- package/src/components/ui/tooltip.tsx +54 -0
- package/src/deployment/builtins/resend-email.server.ts +75 -0
- package/src/deployment/conformance/media-storage.ts +177 -0
- package/src/deployment/contracts/client.ts +331 -0
- package/src/deployment/contracts/server.server.ts +55 -0
- package/src/deployment/contracts/version.ts +8 -0
- package/src/deployment/default/client.ts +6 -0
- package/src/deployment/default/server.server.ts +8 -0
- package/src/features/account/account-copy.ts +17 -0
- package/src/features/account/account-deleted-notice.tsx +23 -0
- package/src/features/account/account-menu.tsx +139 -0
- package/src/features/account/account-messages.ts +4 -0
- package/src/features/account/app-header.tsx +46 -0
- package/src/features/account/content-editing-preferences.tsx +104 -0
- package/src/features/account/delete-account.tsx +236 -0
- package/src/features/account/language-field.tsx +79 -0
- package/src/features/account/language-preference.tsx +101 -0
- package/src/features/account/local-account-data.tsx +131 -0
- package/src/features/account/local-account-storage.ts +82 -0
- package/src/features/account/profile-editor.ts +269 -0
- package/src/features/account/profile-fields.tsx +156 -0
- package/src/features/account/profile-loading.tsx +51 -0
- package/src/features/account/profile-picture.tsx +272 -0
- package/src/features/account/profile-settings.tsx +50 -0
- package/src/features/account/profile-setup-heading.tsx +17 -0
- package/src/features/account/profile-setup.tsx +171 -0
- package/src/features/account/require-profile.ts +40 -0
- package/src/features/account/sign-in-layout.tsx +29 -0
- package/src/features/account/sign-in-page.tsx +45 -0
- package/src/features/account/theme-preference.tsx +89 -0
- package/src/features/account/use-account-preferences.ts +96 -0
- package/src/features/account/use-profile-editor.ts +102 -0
- package/src/features/account/use-profile-update.ts +64 -0
- package/src/features/activity/activity-feed-item.tsx +320 -0
- package/src/features/activity/activity-feed-skeleton.tsx +28 -0
- package/src/features/activity/activity-feed.tsx +113 -0
- package/src/features/activity/activity-query.ts +17 -0
- package/src/features/admin/action-run-status.tsx +99 -0
- package/src/features/admin/actions-page.tsx +869 -0
- package/src/features/admin/actions-skeleton.tsx +155 -0
- package/src/features/admin/admin-loading.tsx +165 -0
- package/src/features/admin/admin-page.tsx +573 -0
- package/src/features/admin/allowlist-table.tsx +125 -0
- package/src/features/admin/cache-copy.ts +12 -0
- package/src/features/admin/cache-files-trigger.tsx +17 -0
- package/src/features/admin/cache-files.tsx +196 -0
- package/src/features/admin/cache-page.tsx +302 -0
- package/src/features/admin/cache-skeleton.tsx +76 -0
- package/src/features/admin/collaborators-page.tsx +425 -0
- package/src/features/admin/collaborators-skeleton.tsx +95 -0
- package/src/features/admin/configuration-contribution.tsx +44 -0
- package/src/features/admin/configuration-page.tsx +303 -0
- package/src/features/admin/configuration-setup.tsx +51 -0
- package/src/features/admin/configuration-skeleton.tsx +68 -0
- package/src/features/admin/plugin-page.tsx +115 -0
- package/src/features/admin/repository-actions-page.tsx +32 -0
- package/src/features/admin/repository-admin-access.ts +35 -0
- package/src/features/admin/repository-admin-page.tsx +75 -0
- package/src/features/admin/repository-configuration-page.tsx +18 -0
- package/src/features/admin/sign-in-allowlist.tsx +381 -0
- package/src/features/admin/use-action-run-tracking.ts +32 -0
- package/src/features/collaborators/collaborator-status.tsx +47 -0
- package/src/features/collaborators/collaborators-contribution.tsx +59 -0
- package/src/features/collections/collection-cell.tsx +336 -0
- package/src/features/collections/collection-header.tsx +233 -0
- package/src/features/collections/collection-model.ts +232 -0
- package/src/features/collections/collection-page.tsx +836 -0
- package/src/features/collections/collection-skeleton.tsx +106 -0
- package/src/features/collections/collection-table-layout.tsx +158 -0
- package/src/features/collections/collection-table.tsx +830 -0
- package/src/features/content/content-mutations.ts +544 -0
- package/src/features/content/use-entry-actions.tsx +399 -0
- package/src/features/dashboard/about-dialog.tsx +212 -0
- package/src/features/dashboard/branch-manager.tsx +118 -0
- package/src/features/dashboard/branch-picker.ts +17 -0
- package/src/features/dashboard/create-branch-dialog.tsx +182 -0
- package/src/features/dashboard/recent-repositories.ts +119 -0
- package/src/features/dashboard/recent-repository-list.tsx +82 -0
- package/src/features/dashboard/relative-time.ts +30 -0
- package/src/features/dashboard/repository-dashboard.tsx +174 -0
- package/src/features/dashboard/repository-loading.tsx +119 -0
- package/src/features/dashboard/repository-selector.tsx +398 -0
- package/src/features/dashboard/repository-template-preview.tsx +46 -0
- package/src/features/dashboard/repository-templates.tsx +237 -0
- package/src/features/drafts/collection-creation.ts +78 -0
- package/src/features/drafts/draft-discard-dialog.tsx +85 -0
- package/src/features/drafts/draft-field-preview.tsx +128 -0
- package/src/features/drafts/draft-merge-dialog.tsx +322 -0
- package/src/features/drafts/draft-merge-fields.ts +25 -0
- package/src/features/drafts/draft-read-cache.ts +73 -0
- package/src/features/drafts/draft-save-button.tsx +240 -0
- package/src/features/drafts/draft-session.ts +374 -0
- package/src/features/drafts/draft-store.ts +432 -0
- package/src/features/drafts/merge-draft.ts +131 -0
- package/src/features/drafts/relative-age.ts +13 -0
- package/src/features/drafts/use-content-draft.tsx +157 -0
- package/src/features/drafts/use-draft-merge.tsx +253 -0
- package/src/features/drafts/use-duplicate-entry.ts +124 -0
- package/src/features/drafts/use-review-viewport.ts +61 -0
- package/src/features/editor/commit-message-dialog.tsx +100 -0
- package/src/features/editor/editor-component-loaders.ts +35 -0
- package/src/features/editor/entry-breadcrumb.ts +64 -0
- package/src/features/editor/entry-page-header.tsx +51 -0
- package/src/features/editor/entry-title.ts +55 -0
- package/src/features/editor/field-locale-menu.tsx +166 -0
- package/src/features/editor/field-locale-values.ts +69 -0
- package/src/features/editor/fields/core-field-renderers.tsx +300 -0
- package/src/features/editor/fields/custom-field-components.ts +15 -0
- package/src/features/editor/fields/field-renderer-registry.ts +45 -0
- package/src/features/editor/fields/field-types.ts +15 -0
- package/src/features/editor/fields/field-validation.tsx +174 -0
- package/src/features/editor/fields/structured-field-options.ts +66 -0
- package/src/features/editor/fields/use-reference-options.ts +47 -0
- package/src/features/editor/file-locale-menu.tsx +487 -0
- package/src/features/editor/locale-context.tsx +264 -0
- package/src/features/editor/locale-selection.tsx +63 -0
- package/src/features/editor/rich-text-media.ts +134 -0
- package/src/features/editor/start-translation-dialog.tsx +136 -0
- package/src/features/editor/translation-preferences.ts +58 -0
- package/src/features/editor/translation-start.ts +35 -0
- package/src/features/media/media-breadcrumb.tsx +84 -0
- package/src/features/media/media-browser.tsx +1236 -0
- package/src/features/media/media-delivery.ts +348 -0
- package/src/features/media/media-drag-overlay.tsx +59 -0
- package/src/features/media/media-entry.tsx +417 -0
- package/src/features/media/media-folder-tree.tsx +216 -0
- package/src/features/media/media-model.ts +60 -0
- package/src/features/media/media-move-dialog.tsx +97 -0
- package/src/features/media/media-mutations.ts +351 -0
- package/src/features/media/media-page.tsx +24 -0
- package/src/features/media/media-picker-dialog.tsx +123 -0
- package/src/features/media/media-skeleton.tsx +97 -0
- package/src/features/media/media-upload.ts +340 -0
- package/src/features/media/media-view.ts +16 -0
- package/src/features/media/upload-conflict-dialog.tsx +126 -0
- package/src/features/media/upload-conflicts.ts +166 -0
- package/src/features/pending-writes/account-operation.ts +44 -0
- package/src/features/pending-writes/pending-write.ts +41 -0
- package/src/features/pending-writes/use-operation.ts +158 -0
- package/src/features/plugins/standalone-plugin-page.tsx +31 -0
- package/src/features/plugins/standalone-plugin-routes.tsx +70 -0
- package/src/features/repository/configuration-required.tsx +91 -0
- package/src/features/repository/overview-entry.ts +59 -0
- package/src/features/repository/overview-file-item.tsx +113 -0
- package/src/features/repository/overview-loading.tsx +93 -0
- package/src/features/repository/overview-local-files.tsx +138 -0
- package/src/features/repository/overview-media-upload.tsx +183 -0
- package/src/features/repository/overview-shortcuts.tsx +138 -0
- package/src/features/repository/overview.tsx +88 -0
- package/src/features/repository/repository-loading.ts +12 -0
- package/src/features/repository/repository-route-resource.ts +26 -0
- package/src/features/repository/repository-route-state.tsx +132 -0
- package/src/features/repository/repository-shell-loading.tsx +228 -0
- package/src/features/repository/repository-unavailable-error.tsx +90 -0
- package/src/features/repository/use-overview-files.ts +74 -0
- package/src/features/settings/account-access-table.tsx +69 -0
- package/src/features/settings/account-settings-contribution.tsx +88 -0
- package/src/features/settings/settings-navigation.ts +99 -0
- package/src/features/settings/shared-projects.tsx +246 -0
- package/src/features/settings/user-settings-skeleton.tsx +132 -0
- package/src/features/settings/user-settings.tsx +426 -0
- package/src/fields/custom/README.md +56 -0
- package/src/fields/definition.ts +45 -0
- package/src/fields/registry.ts +9 -0
- package/src/hooks/use-media-github-link.ts +29 -0
- package/src/hooks/use-mobile.ts +19 -0
- package/src/hooks/use-page-scrolled.ts +14 -0
- package/src/hooks/use-repository-coordinates.ts +15 -0
- package/src/hooks/use-repository-github-link.ts +8 -0
- package/src/hooks/use-route-retry.ts +27 -0
- package/src/hooks/use-sidebar-scroll.ts +48 -0
- package/src/hooks/use-unsaved-warning.ts +14 -0
- package/src/i18n/catalogs.ts +37 -0
- package/src/i18n/dates.ts +19 -0
- package/src/i18n/document-title.tsx +22 -0
- package/src/i18n/error-catalogs.ts +37 -0
- package/src/i18n/errors.ts +71 -0
- package/src/i18n/known-errors.ts +2726 -0
- package/src/i18n/lingui.config.mjs +18 -0
- package/src/i18n/locale.ts +51 -0
- package/src/i18n/localized-error.tsx +7 -0
- package/src/i18n/localized-route-head.tsx +82 -0
- package/src/i18n/message.ts +34 -0
- package/src/i18n/plugin-catalogs.ts +97 -0
- package/src/i18n/po.d.ts +5 -0
- package/src/i18n/test-provider.tsx +12 -0
- package/src/integrations/tanstack-query/devtools.tsx +6 -0
- package/src/integrations/tanstack-query/root-provider.tsx +26 -0
- package/src/lib/access-denial.ts +96 -0
- package/src/lib/action-run-tracker.ts +144 -0
- package/src/lib/action-run-tracking.ts +203 -0
- package/src/lib/actions.ts +103 -0
- package/src/lib/activity.ts +119 -0
- package/src/lib/auth-error.ts +15 -0
- package/src/lib/auth-redirect.ts +29 -0
- package/src/lib/authentication.ts +22 -0
- package/src/lib/avatar-gradient.ts +10 -0
- package/src/lib/base64.ts +29 -0
- package/src/lib/cn.ts +1 -0
- package/src/lib/collaborator-invites.ts +55 -0
- package/src/lib/collaborator-key.ts +4 -0
- package/src/lib/collaborator-status.ts +10 -0
- package/src/lib/commit-message.ts +149 -0
- package/src/lib/component-loader.ts +13 -0
- package/src/lib/component-preloading.ts +152 -0
- package/src/lib/configuration-completion.ts +61 -0
- package/src/lib/configuration-reference.d.mts +2 -0
- package/src/lib/configuration-reference.mjs +5 -0
- package/src/lib/content-field-values.ts +157 -0
- package/src/lib/content-field.ts +5 -0
- package/src/lib/content-filename.ts +116 -0
- package/src/lib/content-icon-loader.ts +42 -0
- package/src/lib/content-operations.ts +49 -0
- package/src/lib/content-validation.ts +68 -0
- package/src/lib/core-route-paths.ts +15 -0
- package/src/lib/date-field.ts +53 -0
- package/src/lib/deferred-component.tsx +42 -0
- package/src/lib/field-value-shapes.ts +94 -0
- package/src/lib/field-values.ts +467 -0
- package/src/lib/file-history.ts +9 -0
- package/src/lib/file-types.ts +88 -0
- package/src/lib/i18n-media.ts +77 -0
- package/src/lib/i18n-schema.ts +38 -0
- package/src/lib/i18n-values.ts +428 -0
- package/src/lib/i18n.ts +408 -0
- package/src/lib/icon-name.ts +2 -0
- package/src/lib/markdown-images.ts +156 -0
- package/src/lib/media-assets.ts +39 -0
- package/src/lib/media-field-values.ts +378 -0
- package/src/lib/media-upload-name.ts +41 -0
- package/src/lib/media-variants.ts +18 -0
- package/src/lib/notifications.ts +156 -0
- package/src/lib/operation-error.ts +9 -0
- package/src/lib/page-title.ts +13 -0
- package/src/lib/profile.ts +50 -0
- package/src/lib/reference-pages.ts +24 -0
- package/src/lib/repository-identity.ts +73 -0
- package/src/lib/repository-page-path.ts +29 -0
- package/src/lib/repository.ts +68 -0
- package/src/lib/select-options.ts +23 -0
- package/src/lib/use-raw-search.ts +9 -0
- package/src/locales/de/messages.po +5664 -0
- package/src/locales/en/messages.po +6093 -0
- package/src/locales/es/messages.po +5887 -0
- package/src/locales/fr/messages.po +6093 -0
- package/src/locales/ja/messages.po +5664 -0
- package/src/locales/pt-BR/messages.po +5887 -0
- package/src/locales/zh-CN/messages.po +5887 -0
- package/src/package/cli.ts +132 -0
- package/src/package/cloudflare-project-routes.ts +16 -0
- package/src/package/config.ts +224 -0
- package/src/package/configured-icons.ts +58 -0
- package/src/package/constants.ts +4 -0
- package/src/package/deploy-config.ts +59 -0
- package/src/package/generate.ts +108 -0
- package/src/package/icon-path.ts +9 -0
- package/src/package/libsql-web.mjs +1 -0
- package/src/package/libsql.mjs +1 -0
- package/src/package/load.ts +19 -0
- package/src/package/migrate.ts +365 -0
- package/src/package/node-middleware.ts +29 -0
- package/src/package/runtime.server.ts +66 -0
- package/src/package/runtime.ts +115 -0
- package/src/package/serve.ts +47 -0
- package/src/package/server-entry.ts +1 -0
- package/src/package/smtp.server.ts +52 -0
- package/src/package/smtp.ts +24 -0
- package/src/package/vite.ts +376 -0
- package/src/plugins/client.ts +141 -0
- package/src/plugins/compose.server.ts +429 -0
- package/src/plugins/email/cloudflare.server.ts +58 -0
- package/src/plugins/email/resend.server.ts +12 -0
- package/src/plugins/email/smtp.server.ts +77 -0
- package/src/plugins/identity.ts +17 -0
- package/src/plugins/server.ts +106 -0
- package/src/routeTree.gen.ts +510 -0
- package/src/router.tsx +49 -0
- package/src/routes/__root.tsx +149 -0
- package/src/routes/admin.tsx +77 -0
- package/src/routes/auth.error.tsx +64 -0
- package/src/routes/auth.redirect.tsx +12 -0
- package/src/routes/github.$owner.$repo.$branch.$page.tsx +54 -0
- package/src/routes/github.$owner.$repo.$branch.actions.tsx +41 -0
- package/src/routes/github.$owner.$repo.$branch.cache.tsx +42 -0
- package/src/routes/github.$owner.$repo.$branch.collaborators.tsx +58 -0
- package/src/routes/github.$owner.$repo.$branch.collection.$name.tsx +96 -0
- package/src/routes/github.$owner.$repo.$branch.collection.$name_.edit.$.tsx +13 -0
- package/src/routes/github.$owner.$repo.$branch.collection.$name_.entry.$.tsx +90 -0
- package/src/routes/github.$owner.$repo.$branch.collection.$name_.new.tsx +125 -0
- package/src/routes/github.$owner.$repo.$branch.configuration.tsx +49 -0
- package/src/routes/github.$owner.$repo.$branch.file.$name.tsx +81 -0
- package/src/routes/github.$owner.$repo.$branch.index.tsx +57 -0
- package/src/routes/github.$owner.$repo.$branch.media.$name.tsx +104 -0
- package/src/routes/github.$owner.$repo.$branch.tsx +203 -0
- package/src/routes/github.$owner.$repo.index.tsx +104 -0
- package/src/routes/index.tsx +65 -0
- package/src/routes/onboarding.tsx +51 -0
- package/src/routes/settings.tsx +39 -0
- package/src/routes/sign-in.tsx +71 -0
- package/src/server/access/policy.ts +316 -0
- package/src/server/access/repository-identity-policy.ts +120 -0
- package/src/server/access/repository-identity.ts +361 -0
- package/src/server/access/repository-policy.ts +85 -0
- package/src/server/access/repository.ts +759 -0
- package/src/server/account/account.ts +62 -0
- package/src/server/account/deletion.ts +74 -0
- package/src/server/account/preferences.ts +50 -0
- package/src/server/actions/actions.ts +780 -0
- package/src/server/activity/capture.ts +228 -0
- package/src/server/activity/details.ts +154 -0
- package/src/server/activity/store.ts +174 -0
- package/src/server/activity/webhook.ts +159 -0
- package/src/server/admin/access.ts +9 -0
- package/src/server/admin/admin.ts +159 -0
- package/src/server/admin/sign-in-allowlist.ts +60 -0
- package/src/server/auth/index.ts +284 -0
- package/src/server/auth/oauth-account.ts +131 -0
- package/src/server/auth/oauth-token-adapter.ts +48 -0
- package/src/server/auth/oauth-token-crypto.ts +56 -0
- package/src/server/auth/rate-limit.ts +56 -0
- package/src/server/auth/secret-crypto.ts +57 -0
- package/src/server/auth/sign-in-allowlist.ts +33 -0
- package/src/server/cache/configuration-access.ts +23 -0
- package/src/server/cache/configuration-read.ts +30 -0
- package/src/server/cache/configuration.ts +483 -0
- package/src/server/cache/directory-store.ts +314 -0
- package/src/server/cache/directory.ts +735 -0
- package/src/server/cache/policy.ts +69 -0
- package/src/server/cache/repository-read.ts +119 -0
- package/src/server/cache/repository.ts +345 -0
- package/src/server/collaborators/api.ts +39 -0
- package/src/server/collaborators/branches.ts +72 -0
- package/src/server/collaborators/collaborators.ts +600 -0
- package/src/server/collaborators/membership-match.ts +10 -0
- package/src/server/collaborators/shared-projects.ts +51 -0
- package/src/server/content/collection.ts +301 -0
- package/src/server/content/conflict.ts +11 -0
- package/src/server/content/entry-editor.ts +1487 -0
- package/src/server/content/localized-directory.ts +104 -0
- package/src/server/content/reference.ts +347 -0
- package/src/server/content/write-response.ts +32 -0
- package/src/server/context-cloudflare.ts +91 -0
- package/src/server/context-node.ts +80 -0
- package/src/server/context.ts +262 -0
- package/src/server/csrf.ts +27 -0
- package/src/server/db/client.ts +56 -0
- package/src/server/db/core.ts +69 -0
- package/src/server/db/schema.ts +447 -0
- package/src/server/db/sql.ts +49 -0
- package/src/server/email/email.ts +19 -0
- package/src/server/email/templates.ts +233 -0
- package/src/server/email/translations.ts +144 -0
- package/src/server/github/account.ts +72 -0
- package/src/server/github/api.ts +1386 -0
- package/src/server/github/app-install.ts +15 -0
- package/src/server/github/app.ts +228 -0
- package/src/server/github/installation-token-cache.ts +23 -0
- package/src/server/github/large-collection.ts +48 -0
- package/src/server/github/webhook-response.ts +81 -0
- package/src/server/github/webhook.ts +1013 -0
- package/src/server/http.ts +56 -0
- package/src/server/index.ts +57 -0
- package/src/server/media/media.ts +884 -0
- package/src/server/media/preview.ts +145 -0
- package/src/server/media/provider.ts +722 -0
- package/src/server/repository/activity.ts +20 -0
- package/src/server/repository/branches.ts +35 -0
- package/src/server/repository/provider.ts +243 -0
- package/src/server/repository/repositories.ts +340 -0
- package/src/server/request-body.ts +33 -0
- package/src/server/routes/account.ts +107 -0
- package/src/server/routes/actions.ts +65 -0
- package/src/server/routes/activity.ts +17 -0
- package/src/server/routes/admin.ts +46 -0
- package/src/server/routes/app-version.ts +51 -0
- package/src/server/routes/auth.ts +35 -0
- package/src/server/routes/cache.ts +41 -0
- package/src/server/routes/collaborators.ts +32 -0
- package/src/server/routes/configuration.ts +35 -0
- package/src/server/routes/entries.ts +103 -0
- package/src/server/routes/health.ts +78 -0
- package/src/server/routes/index.ts +154 -0
- package/src/server/routes/media.ts +95 -0
- package/src/server/routes/plugin-request.ts +110 -0
- package/src/server/routes/plugins.ts +30 -0
- package/src/server/routes/repositories.ts +68 -0
- package/src/server/routes/shared.ts +109 -0
- package/src/server/routes/webhooks.ts +11 -0
- package/src/server/runtime/runtime-ports.ts +7 -0
- package/src/server/runtime-config.ts +284 -0
- package/src/server/services/account-language.ts +21 -0
- package/src/server/services/account.ts +145 -0
- package/src/server/services/actions.ts +354 -0
- package/src/server/services/activity.ts +339 -0
- package/src/server/services/admin.ts +106 -0
- package/src/server/services/authentication-state.ts +58 -0
- package/src/server/services/cache-management.ts +165 -0
- package/src/server/services/cache.ts +100 -0
- package/src/server/services/collaborators.ts +138 -0
- package/src/server/services/configuration-editor.ts +272 -0
- package/src/server/services/configuration.ts +102 -0
- package/src/server/services/content.ts +598 -0
- package/src/server/services/context.ts +91 -0
- package/src/server/services/dashboard.ts +74 -0
- package/src/server/services/entry-translations.ts +44 -0
- package/src/server/services/errors.ts +159 -0
- package/src/server/services/index.ts +48 -0
- package/src/server/services/local-account-data.ts +91 -0
- package/src/server/services/media.ts +507 -0
- package/src/server/services/reference.ts +39 -0
- package/src/server/services/repository.ts +188 -0
- package/src/shadcn-tailwind.css +674 -0
- package/src/shared/account-preferences.ts +55 -0
- package/src/shared/application-operations.ts +40 -0
- package/src/shared/collection-presentation.ts +32 -0
- package/src/shared/configuration-compatibility.ts +192 -0
- package/src/shared/configuration-components.ts +98 -0
- package/src/shared/configuration-content.ts +120 -0
- package/src/shared/configuration-discovery.ts +111 -0
- package/src/shared/configuration-names.ts +52 -0
- package/src/shared/configuration-navigation.ts +166 -0
- package/src/shared/configuration-schema.ts +1257 -0
- package/src/shared/configuration-settings.ts +22 -0
- package/src/shared/configuration-source.ts +186 -0
- package/src/shared/configuration-yaml.ts +206 -0
- package/src/shared/configuration.ts +296 -0
- package/src/shared/content-conflict.ts +6 -0
- package/src/shared/content-serialization.ts +252 -0
- package/src/shared/field-validation-error.ts +32 -0
- package/src/shared/git-path.ts +68 -0
- package/src/shared/json.ts +30 -0
- package/src/shared/media-error.ts +23 -0
- package/src/shared/repository-search.ts +43 -0
- package/src/shared/repository-templates.ts +22 -0
- package/src/shared/requests/account.ts +37 -0
- package/src/shared/requests/action.ts +169 -0
- package/src/shared/requests/activity.ts +31 -0
- package/src/shared/requests/admin.ts +98 -0
- package/src/shared/requests/branch.ts +25 -0
- package/src/shared/requests/cache.ts +62 -0
- package/src/shared/requests/collaborator.ts +49 -0
- package/src/shared/requests/collection.ts +32 -0
- package/src/shared/requests/configuration.ts +41 -0
- package/src/shared/requests/entry-write.ts +221 -0
- package/src/shared/requests/entry.ts +35 -0
- package/src/shared/requests/fixed-file.ts +29 -0
- package/src/shared/requests/local-account.ts +5 -0
- package/src/shared/requests/media.ts +215 -0
- package/src/shared/requests/reference.ts +51 -0
- package/src/shared/requests/repository-template.ts +32 -0
- package/src/shared/requests/repository.ts +28 -0
- package/src/shared/requests/ui-language.ts +15 -0
- package/src/shared/sign-in-allowlist.ts +77 -0
- package/src/shared/yaml-aliases.ts +25 -0
- package/src/styles.css +453 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright 2025 Ronan Berder
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,67 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Pages CMS
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
An open-source CMS for GitHub. Edit Markdown, YAML, JSON and media in your browser. Saving content commits the changes to your repository.
|
|
4
|
+
|
|
5
|
+
<picture>
|
|
6
|
+
<source media="(prefers-color-scheme: dark)" srcset=".github/images/collection-dark.png">
|
|
7
|
+
<img src=".github/images/collection-light.png" alt="Articles in Pages CMS, with thumbnails, authors and publication dates.">
|
|
8
|
+
</picture>
|
|
9
|
+
|
|
10
|
+
## Get started
|
|
11
|
+
|
|
12
|
+
[Open Pages CMS](https://app.pagescms.org), connect your repository, and add a `.pages.yml` file to define what editors can change. Follow the [quick start](docs/public/quick-start.md) for a working example.
|
|
13
|
+
|
|
14
|
+
## Self-hosting
|
|
15
|
+
|
|
16
|
+
Run the setup wizard with Node.js 22.19 or newer.
|
|
17
|
+
|
|
18
|
+
```sh
|
|
19
|
+
npm create pagescms@latest -- my-cms
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
The wizard offers four deployment targets:
|
|
23
|
+
|
|
24
|
+
- [Node.js](docs/public/self-hosting/node.md)
|
|
25
|
+
- [Cloudflare Workers](docs/public/self-hosting/cloudflare.md)
|
|
26
|
+
- [Vercel](docs/public/self-hosting/vercel.md) (experimental)
|
|
27
|
+
- [Netlify](docs/public/self-hosting/netlify.md) (experimental)
|
|
28
|
+
|
|
29
|
+
Follow the [self-hosting guide](docs/public/self-hosting/index.md) to run your instance. If you’re moving from 2.x, see the [collaborator migration guide](docs/development/postgresql-migration.md).
|
|
30
|
+
|
|
31
|
+
## Development
|
|
32
|
+
|
|
33
|
+
From the cloned repository, use Node.js 22.19 or newer and pnpm 10.
|
|
34
|
+
|
|
35
|
+
```sh
|
|
36
|
+
pnpm install
|
|
37
|
+
cp .env.example .env.local
|
|
38
|
+
pnpm setup:github-app
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Choose **Local development** and set `BETTER_AUTH_SECRET` in `.env.local`. See [GitHub App setup](docs/development/authentication.md) for the webhook and credentials.
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
pnpm db:migrate
|
|
45
|
+
pnpm dev
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Open [localhost:3000](http://localhost:3000). Run `pnpm validate` to check your changes.
|
|
49
|
+
|
|
50
|
+
## Documentation
|
|
51
|
+
|
|
52
|
+
- [Pages CMS documentation](https://pagescms.org/docs/)
|
|
53
|
+
- [Configuration reference](docs/public/reference.md)
|
|
54
|
+
- [Developer guides](docs/index.md)
|
|
55
|
+
- [Changelog](CHANGELOG.md)
|
|
56
|
+
|
|
57
|
+
## Support the project
|
|
58
|
+
|
|
59
|
+
- [Sponsor Pages CMS](https://github.com/sponsors/hunvreus)
|
|
60
|
+
- [Report an issue](https://github.com/hunvreus/pagescms/issues)
|
|
61
|
+
- [Contribute code](https://github.com/hunvreus/pagescms/pulls)
|
|
62
|
+
- [Star the repository](https://github.com/hunvreus/pagescms)
|
|
63
|
+
- [Join the Discord](https://pagescms.org/chat)
|
|
64
|
+
|
|
65
|
+
## License
|
|
66
|
+
|
|
67
|
+
[MIT](LICENSE).
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { o as e, r as t } from "./vite-BUlNpf2j.js";
|
|
3
|
+
import { dirname as n, isAbsolute as r, relative as i, resolve as a } from "node:path";
|
|
4
|
+
import { fileURLToPath as o } from "node:url";
|
|
5
|
+
import { mkdirSync as s, readFileSync as c, realpathSync as l, writeFileSync as u } from "node:fs";
|
|
6
|
+
import { createServer as d, loadEnv as f, preview as p } from "vite";
|
|
7
|
+
import { parseArgs as m } from "node:util";
|
|
8
|
+
// src/package/deploy-config.ts
|
|
9
|
+
function h(e, t) {
|
|
10
|
+
let o = a(l(e), ".wrangler/deploy/config.json"), d = a(l(t), ".wrangler/deploy/config.json"), f;
|
|
11
|
+
try {
|
|
12
|
+
f = JSON.parse(c(o, "utf8"));
|
|
13
|
+
} catch (e) {
|
|
14
|
+
throw Error("Cloudflare build did not produce a valid deployment configuration", { cause: e });
|
|
15
|
+
}
|
|
16
|
+
let p = l(a(t, "dist"));
|
|
17
|
+
if (!f || typeof f != "object" || Array.isArray(f)) throw Error("Invalid generated Cloudflare deployment configuration");
|
|
18
|
+
let m = f, h = (e) => {
|
|
19
|
+
if (typeof e != "string" || !e) throw Error("Invalid generated Cloudflare deployment path");
|
|
20
|
+
let t = l(a(n(o), e)), s = i(p, t);
|
|
21
|
+
if (!s || s.startsWith("..") || r(s)) throw Error("Generated Cloudflare deployment path is outside this project");
|
|
22
|
+
return i(n(d), t);
|
|
23
|
+
}, g = { configPath: h(m.configPath) };
|
|
24
|
+
if (m.prerenderWorkerConfigPath !== void 0 && (g.prerenderWorkerConfigPath = h(m.prerenderWorkerConfigPath)), m.auxiliaryWorkers !== void 0) {
|
|
25
|
+
if (!Array.isArray(m.auxiliaryWorkers)) throw Error("Invalid generated Cloudflare auxiliary workers");
|
|
26
|
+
g.auxiliaryWorkers = m.auxiliaryWorkers.map((e) => {
|
|
27
|
+
if (!e || typeof e != "object" || Array.isArray(e)) throw Error("Invalid generated Cloudflare auxiliary worker");
|
|
28
|
+
return {
|
|
29
|
+
...e,
|
|
30
|
+
configPath: h(e.configPath)
|
|
31
|
+
};
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
s(n(d), { recursive: !0 }), u(d, JSON.stringify(g));
|
|
35
|
+
}
|
|
36
|
+
// src/package/cli.ts
|
|
37
|
+
var { values: g, positionals: _ } = m({
|
|
38
|
+
args: process.argv.slice(2),
|
|
39
|
+
allowPositionals: !0,
|
|
40
|
+
options: {
|
|
41
|
+
help: {
|
|
42
|
+
type: "boolean",
|
|
43
|
+
short: "h"
|
|
44
|
+
},
|
|
45
|
+
port: { type: "string" },
|
|
46
|
+
host: { type: "string" },
|
|
47
|
+
mode: { type: "string" },
|
|
48
|
+
local: { type: "boolean" },
|
|
49
|
+
remote: { type: "boolean" },
|
|
50
|
+
"remote-libsql": { type: "boolean" }
|
|
51
|
+
}
|
|
52
|
+
}), v = _[0] ?? "dev";
|
|
53
|
+
if (g.help && (console.log("Usage: pagescms [dev|build|start|preview|migrate] [--port 3000] [--host localhost] [--mode development|production] [--local|--remote] [--remote-libsql]\nUse migrate --local to require local SQLite or local D1. Cloudflare migrations are local unless --remote is specified. Use --remote-libsql when building a Node function for remote libSQL."), process.exit(0)), _.length > 1 || ![
|
|
54
|
+
"dev",
|
|
55
|
+
"build",
|
|
56
|
+
"start",
|
|
57
|
+
"preview",
|
|
58
|
+
"migrate"
|
|
59
|
+
].includes(v)) throw Error("Unknown command. Run pagescms --help.");
|
|
60
|
+
if ((g.local || g.remote) && v !== "migrate") throw Error("--local and --remote are only valid with migrate");
|
|
61
|
+
if (g.local && g.remote) throw Error("Choose either --local or --remote");
|
|
62
|
+
if (g["remote-libsql"] && v !== "build") throw Error("--remote-libsql is only valid with build");
|
|
63
|
+
var y = Number(g.port ?? 3e3);
|
|
64
|
+
if (!Number.isInteger(y) || y < 1 || y > 65535) throw Error("--port must be between 1 and 65535");
|
|
65
|
+
var b = g.host ?? "localhost", x = g.mode ?? ([
|
|
66
|
+
"start",
|
|
67
|
+
"preview",
|
|
68
|
+
"build"
|
|
69
|
+
].includes(v) ? "production" : "development");
|
|
70
|
+
function S() {
|
|
71
|
+
for (let [e, t] of Object.entries(f(x, process.cwd(), ""))) process.env[e] ??= t;
|
|
72
|
+
}
|
|
73
|
+
if (v === "migrate") {
|
|
74
|
+
let t = await e(process.cwd());
|
|
75
|
+
if (S(), t.target === "node" && g.local) for (let e of ["DATABASE_URL", "CACHE_DATABASE_URL"]) {
|
|
76
|
+
let t = process.env[e]?.trim();
|
|
77
|
+
if (t && !t.startsWith("file:") && t !== ":memory:") throw Error(`Local setup requires a SQLite file for ${e}. To migrate your configured database explicitly, run pagescms migrate.`);
|
|
78
|
+
}
|
|
79
|
+
t.target === "cloudflare" && !g.remote && console.log("Migrating local Cloudflare databases only.");
|
|
80
|
+
let { migratePackage: n } = await import("./migrate.mjs");
|
|
81
|
+
for (let e of await n(t, { remote: g.remote })) console.log(`${e.database}: ${e.source} (${e.journal})`);
|
|
82
|
+
} else if (v === "build") {
|
|
83
|
+
let r = await e(process.cwd());
|
|
84
|
+
if (g["remote-libsql"] && r.target !== "node") throw Error("--remote-libsql requires the Node target");
|
|
85
|
+
r.target === "cloudflare" && process.umask(process.umask() | 63);
|
|
86
|
+
let { createBuilder: i } = await import("vite"), s = await i({
|
|
87
|
+
configFile: !1,
|
|
88
|
+
mode: x,
|
|
89
|
+
plugins: await t({ remoteLibsql: g["remote-libsql"] })
|
|
90
|
+
});
|
|
91
|
+
if (r.target === "node") {
|
|
92
|
+
await s.build(s.environments.client);
|
|
93
|
+
let { build: e } = await import("vite");
|
|
94
|
+
await e({
|
|
95
|
+
configFile: !1,
|
|
96
|
+
mode: x,
|
|
97
|
+
plugins: await t({ remoteLibsql: g["remote-libsql"] }),
|
|
98
|
+
build: {
|
|
99
|
+
ssr: o(import.meta.resolve("pagescms/server-entry")),
|
|
100
|
+
outDir: a(process.cwd(), "dist/server"),
|
|
101
|
+
rollupOptions: { output: { entryFileNames: "server.js" } }
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
} else await s.buildApp(), h(a(n(o(import.meta.url)), "../.."), process.cwd());
|
|
105
|
+
} else if (v === "dev") {
|
|
106
|
+
let e = await t();
|
|
107
|
+
S();
|
|
108
|
+
let n = await d({
|
|
109
|
+
configFile: !1,
|
|
110
|
+
mode: x,
|
|
111
|
+
plugins: e,
|
|
112
|
+
server: {
|
|
113
|
+
port: y,
|
|
114
|
+
host: b,
|
|
115
|
+
strictPort: !0
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
await n.listen(), n.printUrls();
|
|
119
|
+
} else {
|
|
120
|
+
let n = await e(process.cwd());
|
|
121
|
+
if (S(), n.target === "node") {
|
|
122
|
+
let { serveNode: e } = await import("./serve-D2bbxXbp.js");
|
|
123
|
+
await e({
|
|
124
|
+
port: y,
|
|
125
|
+
host: b
|
|
126
|
+
});
|
|
127
|
+
} else if (v === "start") throw Error("Cloudflare output runs with Wrangler or pagescms preview; start is for Node.");
|
|
128
|
+
else (await p({
|
|
129
|
+
configFile: !1,
|
|
130
|
+
mode: x,
|
|
131
|
+
plugins: await t(),
|
|
132
|
+
preview: {
|
|
133
|
+
port: y,
|
|
134
|
+
host: b,
|
|
135
|
+
strictPort: !0
|
|
136
|
+
}
|
|
137
|
+
})).printUrls();
|
|
138
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { isAbsolute as e } from "node:path";
|
|
2
|
+
import { fileURLToPath as t } from "node:url";
|
|
3
|
+
// src/package/constants.ts
|
|
4
|
+
var n = ["node", "cloudflare"], r = "pagescms-default-email", i = class extends Error {
|
|
5
|
+
constructor(e) {
|
|
6
|
+
super(e), this.name = "PackageConfigurationError";
|
|
7
|
+
}
|
|
8
|
+
}, a = [
|
|
9
|
+
"id",
|
|
10
|
+
"server",
|
|
11
|
+
"shared",
|
|
12
|
+
"client",
|
|
13
|
+
"targets",
|
|
14
|
+
"options",
|
|
15
|
+
"publicOptions",
|
|
16
|
+
"migrations"
|
|
17
|
+
], o = [
|
|
18
|
+
"server",
|
|
19
|
+
"shared",
|
|
20
|
+
"client"
|
|
21
|
+
];
|
|
22
|
+
function s(e) {
|
|
23
|
+
if (typeof e != "object" || !e) return !1;
|
|
24
|
+
let t = Object.getPrototypeOf(e);
|
|
25
|
+
return t === Object.prototype || t === null;
|
|
26
|
+
}
|
|
27
|
+
function c(e, t, n) {
|
|
28
|
+
if (e === null || typeof e == "string" || typeof e == "boolean") return e;
|
|
29
|
+
if (typeof e == "number") {
|
|
30
|
+
if (!Number.isFinite(e)) throw new i(`${t} must be a finite number`);
|
|
31
|
+
return e;
|
|
32
|
+
}
|
|
33
|
+
if (Array.isArray(e) || s(e)) {
|
|
34
|
+
if (n.has(e)) throw new i(`${t} must not be circular`);
|
|
35
|
+
n.add(e);
|
|
36
|
+
let r;
|
|
37
|
+
if (Array.isArray(e)) {
|
|
38
|
+
let a = [];
|
|
39
|
+
for (let r = 0; r < e.length; r++) {
|
|
40
|
+
if (!Object.hasOwn(e, r)) throw new i(`${t} must not be sparse`);
|
|
41
|
+
a.push(c(e[r], `${t}[${r}]`, n));
|
|
42
|
+
}
|
|
43
|
+
r = a;
|
|
44
|
+
} else {
|
|
45
|
+
if (Object.getOwnPropertySymbols(e).length) throw new i(`${t} must not use symbol keys`);
|
|
46
|
+
let a = {};
|
|
47
|
+
for (let [r, i] of Object.entries(e)) Object.defineProperty(a, r, {
|
|
48
|
+
value: c(i, `${t}.${r}`, n),
|
|
49
|
+
enumerable: !0,
|
|
50
|
+
writable: !0,
|
|
51
|
+
configurable: !0
|
|
52
|
+
});
|
|
53
|
+
r = a;
|
|
54
|
+
}
|
|
55
|
+
return n.delete(e), r;
|
|
56
|
+
}
|
|
57
|
+
throw new i(`${t} must be JSON-serializable`);
|
|
58
|
+
}
|
|
59
|
+
function l(e) {
|
|
60
|
+
if (typeof e == "object" && e) {
|
|
61
|
+
for (let t of Object.values(e)) l(t);
|
|
62
|
+
Object.freeze(e);
|
|
63
|
+
}
|
|
64
|
+
return e;
|
|
65
|
+
}
|
|
66
|
+
function u(e, t) {
|
|
67
|
+
if (e === void 0) return Object.freeze({});
|
|
68
|
+
if (!s(e)) throw new i(`${t} must be a JSON object`);
|
|
69
|
+
return l(c(e, t, /* @__PURE__ */ new Set()));
|
|
70
|
+
}
|
|
71
|
+
function d(n, r) {
|
|
72
|
+
let a;
|
|
73
|
+
if (n instanceof URL) {
|
|
74
|
+
if (n.protocol !== "file:") throw new i(`${r} must be a file: URL`);
|
|
75
|
+
a = t(n);
|
|
76
|
+
} else if (typeof n == "string") a = n.startsWith("file:") ? t(n) : n;
|
|
77
|
+
else throw new i(`${r} must be a path or file: URL`);
|
|
78
|
+
if (!e(a) || a.includes("\0") || /[\r\n]/.test(a)) throw new i(`${r} must be an absolute file path`);
|
|
79
|
+
return a;
|
|
80
|
+
}
|
|
81
|
+
function f(e) {
|
|
82
|
+
return n.includes(e);
|
|
83
|
+
}
|
|
84
|
+
function p(e) {
|
|
85
|
+
if (!s(e)) throw new i("Plugin descriptor must be an object");
|
|
86
|
+
let t = e.id;
|
|
87
|
+
if (typeof t != "string" || !/^[a-z][a-z0-9-]*$/.test(t)) throw new i("Invalid plugin ID");
|
|
88
|
+
if (t === "pagescms-default-email") throw new i(`Plugin ID ${t} is reserved`);
|
|
89
|
+
for (let n of Object.keys(e)) if (!a.includes(n)) throw new i(`Unknown key ${n} in plugin ${t}`);
|
|
90
|
+
let r = {};
|
|
91
|
+
for (let n of o) e[n] !== void 0 && (r[n] = d(e[n], `Plugin ${t} ${n}`));
|
|
92
|
+
if (!Object.keys(r).length) throw new i(`Plugin ${t} must provide a server, shared or client module`);
|
|
93
|
+
let c = e.migrations === void 0 ? void 0 : d(e.migrations, `Plugin ${t} migrations`);
|
|
94
|
+
if (c && t === "core") throw new i("Plugin ID core cannot declare migrations");
|
|
95
|
+
let l = e.targets ?? n;
|
|
96
|
+
if (!Array.isArray(l) || !l.length || !l.every(f) || new Set(l).size !== l.length) throw new i(`Invalid targets in plugin ${t}`);
|
|
97
|
+
return Object.freeze({
|
|
98
|
+
id: t,
|
|
99
|
+
...r,
|
|
100
|
+
...c ? { migrations: c } : {},
|
|
101
|
+
targets: Object.freeze([...l]),
|
|
102
|
+
options: u(e.options, `Plugin ${t} options`),
|
|
103
|
+
publicOptions: u(e.publicOptions, `Plugin ${t} publicOptions`)
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
function m(e) {
|
|
107
|
+
if (!s(e)) throw new i("Configuration must be an object");
|
|
108
|
+
for (let t of Object.keys(e)) if (!["target", "plugins"].includes(t)) throw new i(`Unknown configuration key ${t}`);
|
|
109
|
+
if (!f(e.target)) throw new i(`Unsupported target ${String(e.target)}`);
|
|
110
|
+
let t = e.target, n = e.plugins ?? [];
|
|
111
|
+
if (!Array.isArray(n)) throw new i("Plugins must be an array");
|
|
112
|
+
let r = /* @__PURE__ */ new Set(), a = n.map((e) => {
|
|
113
|
+
let n = p(e);
|
|
114
|
+
if (r.has(n.id)) throw new i(`Duplicate plugin: ${n.id}`);
|
|
115
|
+
if (r.add(n.id), !n.targets.includes(t)) throw new i(`Plugin ${n.id} does not support target ${t}`);
|
|
116
|
+
return n;
|
|
117
|
+
});
|
|
118
|
+
return Object.freeze({
|
|
119
|
+
target: t,
|
|
120
|
+
plugins: Object.freeze(a)
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
export { r as a, u as i, m as n, n as o, p as r, i as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { a as DEFAULT_EMAIL_PLUGIN_ID, o as PACKAGE_TARGETS, t as PackageConfigurationError, n as defineConfig, r as definePlugin, i as toJsonOptions } from "./config-CAscGjBB.js";
|
|
Binary file
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<svg width="480" height="480" viewBox="0 0 480 480" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<style>
|
|
3
|
+
:root {
|
|
4
|
+
--icon-bg: oklch(0.60 0.13 163);
|
|
5
|
+
--icon-fg: oklch(0.98 0.02 166);
|
|
6
|
+
}
|
|
7
|
+
@media (prefers-color-scheme: dark) {
|
|
8
|
+
:root {
|
|
9
|
+
--icon-bg: oklch(0.70 0.15 162);
|
|
10
|
+
--icon-fg: oklch(0.26 0.05 173);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
</style>
|
|
14
|
+
<rect width="480" height="480" rx="96" fill="var(--icon-bg)" />
|
|
15
|
+
<path d="M60 132C60 92.2355 92.2355 60 132 60H240.177C259.272 60 277.586 67.5857 291.088 81.0883L398.912 188.912C412.414 202.414 420 220.728 420 239.823V348C420 387.764 387.764 420 348 420H132C92.2355 420 60 387.764 60 348V132Z" fill="var(--icon-fg)" />
|
|
16
|
+
</svg>
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { n as e } from "./config-CAscGjBB.js";
|
|
2
|
+
// src/package/generate.ts
|
|
3
|
+
var t = "// Generated by Pages CMS from the package configuration. Do not edit.";
|
|
4
|
+
function n(e) {
|
|
5
|
+
return JSON.stringify(e);
|
|
6
|
+
}
|
|
7
|
+
function r(r, { coreImportPrefix: i = "#/" } = {}) {
|
|
8
|
+
if (!i.endsWith("/") || /["'\\\n\r]/.test(i)) throw Error("Invalid core import prefix");
|
|
9
|
+
let a = e(r), o = (e) => n(`${i}${e}`), s = [], c = [], l = [], u = [], d = [], f = [];
|
|
10
|
+
a.plugins.forEach((e, t) => {
|
|
11
|
+
e.server && (s.push(`import server${t} from ${n(e.server)}`), c.push(` instantiateServerPlugin(${n(e.id)}, server${t}, ${n(e.options)}, { publicOptions: ${n(e.publicOptions)}, target: ${n(a.target)} }),`)), (e.shared || e.client) && (e.shared && l.push(`import shared${t} from ${n(e.shared)}`), e.shared && (d.push(`import shared${t} from ${n(e.shared)}`), f.push(` instantiateClientPlugin(${n(e.id)}, shared${t}, undefined, ${n(e.publicOptions)}),`)), e.client && l.push(`import client${t} from ${n(e.client)}`), u.push(` instantiateClientPlugin(${n(e.id)}, ${e.shared ? `shared${t}` : "undefined"}, ${e.client ? `client${t}` : "undefined"}, ${n(e.publicOptions)}),`));
|
|
12
|
+
});
|
|
13
|
+
let p = [
|
|
14
|
+
t,
|
|
15
|
+
`import { definePagesCmsServerDeployment } from ${o("deployment/contracts/server.server")}`,
|
|
16
|
+
`import { DEPLOYMENT_API_VERSION } from ${o("deployment/contracts/version")}`,
|
|
17
|
+
`import { instantiateServerPlugin, withDefaultEmail } from ${o("package/runtime.server")}`,
|
|
18
|
+
...s,
|
|
19
|
+
"",
|
|
20
|
+
"export default definePagesCmsServerDeployment({",
|
|
21
|
+
" apiVersion: DEPLOYMENT_API_VERSION,",
|
|
22
|
+
" plugins: withDefaultEmail([",
|
|
23
|
+
...c,
|
|
24
|
+
" ]),",
|
|
25
|
+
"})",
|
|
26
|
+
""
|
|
27
|
+
].join("\n"), m = (e, n) => [
|
|
28
|
+
t,
|
|
29
|
+
`import { definePagesCmsClientDeployment } from ${o("deployment/contracts/client")}`,
|
|
30
|
+
`import { DEPLOYMENT_API_VERSION } from ${o("deployment/contracts/version")}`,
|
|
31
|
+
`import { instantiateClientPlugin } from ${o("package/runtime")}`,
|
|
32
|
+
...e,
|
|
33
|
+
"",
|
|
34
|
+
"export default definePagesCmsClientDeployment({",
|
|
35
|
+
" apiVersion: DEPLOYMENT_API_VERSION,",
|
|
36
|
+
" plugins: [",
|
|
37
|
+
...n,
|
|
38
|
+
" ],",
|
|
39
|
+
"})",
|
|
40
|
+
""
|
|
41
|
+
].join("\n");
|
|
42
|
+
return {
|
|
43
|
+
server: p,
|
|
44
|
+
client: m(l, u),
|
|
45
|
+
shared: m(d, f)
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export { r as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as generatePackageEntries } from "./generate-B-YdQuMX.js";
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { n as e, t } from "./config-CAscGjBB.js";
|
|
2
|
+
import { mkdir as n, mkdtemp as r, rm as i, writeFile as a } from "node:fs/promises";
|
|
3
|
+
import { dirname as o, join as s, resolve as c } from "node:path";
|
|
4
|
+
import { fileURLToPath as l, pathToFileURL as u } from "node:url";
|
|
5
|
+
import { existsSync as d, readFileSync as f, readdirSync as p } from "node:fs";
|
|
6
|
+
import { spawn as m } from "node:child_process";
|
|
7
|
+
import { createRequire as h } from "node:module";
|
|
8
|
+
import { tmpdir as g } from "node:os";
|
|
9
|
+
// src/package/migrate.ts
|
|
10
|
+
var _ = c(o(l(import.meta.url)), "../.."), v = c(_, "drizzle"), y = "__drizzle_migrations", b = "__pagescms_core_d1_migrations", x = [
|
|
11
|
+
"wrangler.jsonc",
|
|
12
|
+
"wrangler.json",
|
|
13
|
+
"wrangler.toml"
|
|
14
|
+
];
|
|
15
|
+
function S(e, t) {
|
|
16
|
+
if (e === "core") return t === "node" ? y : b;
|
|
17
|
+
let n = e.replaceAll("-", "_");
|
|
18
|
+
return t === "node" ? `__pagescms_${n}_migrations` : `__pagescms_${n}_d1_migrations`;
|
|
19
|
+
}
|
|
20
|
+
function C(e, n) {
|
|
21
|
+
let r = (e) => {
|
|
22
|
+
throw new t(`${n} migrations: ${e}`);
|
|
23
|
+
}, i;
|
|
24
|
+
try {
|
|
25
|
+
i = JSON.parse(f(s(e, "meta/_journal.json"), "utf8"));
|
|
26
|
+
} catch {
|
|
27
|
+
r(`missing or invalid meta/_journal.json in ${e}`);
|
|
28
|
+
}
|
|
29
|
+
let a = i.entries;
|
|
30
|
+
if (!Array.isArray(a)) return r("journal has no entries");
|
|
31
|
+
let o = [], c = {
|
|
32
|
+
idx: -1,
|
|
33
|
+
number: -1,
|
|
34
|
+
when: -1
|
|
35
|
+
};
|
|
36
|
+
for (let e of a) {
|
|
37
|
+
let { idx: t, tag: n, when: i } = e, a = typeof n == "string" ? /^(\d+)_/.exec(n) : null;
|
|
38
|
+
typeof t == "number" && typeof i == "number" && a && t > c.idx && Number(a[1]) > c.number && i > c.when || r(`journal entry ${String(n)} is out of order`), c = {
|
|
39
|
+
idx: t,
|
|
40
|
+
number: Number(a[1]),
|
|
41
|
+
when: i
|
|
42
|
+
}, o.push(`${n}.sql`);
|
|
43
|
+
}
|
|
44
|
+
let l = p(e, { withFileTypes: !0 }).filter((e) => e.isFile() && e.name.endsWith(".sql")).map((e) => e.name).sort();
|
|
45
|
+
JSON.stringify(l) !== JSON.stringify([...o].sort()) && r("SQL files do not match meta/_journal.json");
|
|
46
|
+
}
|
|
47
|
+
function w(e) {
|
|
48
|
+
let t = {
|
|
49
|
+
id: "core",
|
|
50
|
+
folder: v
|
|
51
|
+
}, n = e.plugins.flatMap((e) => e.migrations ? [{
|
|
52
|
+
id: e.id,
|
|
53
|
+
folder: e.migrations
|
|
54
|
+
}] : []);
|
|
55
|
+
for (let e of [t, ...n]) C(e.folder, e.id);
|
|
56
|
+
return {
|
|
57
|
+
core: t,
|
|
58
|
+
plugins: n
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function T(e) {
|
|
62
|
+
return e?.trim() || void 0;
|
|
63
|
+
}
|
|
64
|
+
function E(e, t) {
|
|
65
|
+
if (!e.startsWith("file:") || e.startsWith("file://")) return e;
|
|
66
|
+
let n = e.slice(5);
|
|
67
|
+
return n === ":memory:" ? e : u(c(t, n)).href;
|
|
68
|
+
}
|
|
69
|
+
async function D(e, t, r) {
|
|
70
|
+
let i = T(r.DATABASE_URL);
|
|
71
|
+
if (!i) throw Error("DATABASE_URL is required");
|
|
72
|
+
let a = {
|
|
73
|
+
url: E(i, t),
|
|
74
|
+
authToken: T(r.DATABASE_AUTH_TOKEN)
|
|
75
|
+
}, s = T(r.CACHE_DATABASE_URL), c = {
|
|
76
|
+
url: s ? E(s, t) : a.url,
|
|
77
|
+
authToken: T(r.CACHE_DATABASE_AUTH_TOKEN) ?? a.authToken
|
|
78
|
+
}, u = c.url === a.url && c.authToken === a.authToken, { core: d, plugins: f } = w(e), { createClient: p } = await import("@libsql/client"), { drizzle: m } = await import("drizzle-orm/libsql"), { migrate: h } = await import("drizzle-orm/libsql/migrator"), g = [];
|
|
79
|
+
async function _(e, t, r) {
|
|
80
|
+
e.url.startsWith("file://") && await n(o(l(e.url)), { recursive: !0 });
|
|
81
|
+
let i = p(e);
|
|
82
|
+
try {
|
|
83
|
+
for (let e of r) {
|
|
84
|
+
let n = S(e.id, "node");
|
|
85
|
+
await h(m(i), {
|
|
86
|
+
migrationsFolder: e.folder,
|
|
87
|
+
migrationsTable: n
|
|
88
|
+
}), g.push({
|
|
89
|
+
database: t,
|
|
90
|
+
source: e.id,
|
|
91
|
+
journal: n
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
} finally {
|
|
95
|
+
i.close();
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
return await _(a, "DATABASE", [d, ...f]), u || await _(c, "CACHE_DATABASE", [d]), g;
|
|
99
|
+
}
|
|
100
|
+
function O(e) {
|
|
101
|
+
for (let t of [s(e, "package.json"), import.meta.url]) try {
|
|
102
|
+
let e = h(t), n = e.resolve("wrangler/package.json"), { bin: r } = JSON.parse(f(n, "utf8"));
|
|
103
|
+
return {
|
|
104
|
+
module: e.resolve("wrangler"),
|
|
105
|
+
bin: s(o(n), r.wrangler)
|
|
106
|
+
};
|
|
107
|
+
} catch {}
|
|
108
|
+
throw Error("Install wrangler to migrate a Cloudflare application");
|
|
109
|
+
}
|
|
110
|
+
function k(e) {
|
|
111
|
+
return e.preview_database_id ?? e.database_id ?? e.binding;
|
|
112
|
+
}
|
|
113
|
+
function A(e, t, n, r) {
|
|
114
|
+
return new Promise((i, a) => {
|
|
115
|
+
let o = m(process.execPath, [e, ...t], {
|
|
116
|
+
cwd: n,
|
|
117
|
+
stdio: [
|
|
118
|
+
r ? "inherit" : "ignore",
|
|
119
|
+
"inherit",
|
|
120
|
+
"inherit"
|
|
121
|
+
]
|
|
122
|
+
});
|
|
123
|
+
o.on("error", a), o.on("exit", (e) => e === 0 ? i() : a(/* @__PURE__ */ Error(`wrangler ${t.slice(0, 3).join(" ")} failed`)));
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
async function j(e, t, n, o) {
|
|
127
|
+
let l = T(n.CLOUDFLARE_VITE_WRANGLER_CONFIG_PATH), f = l ? c(t, l) : x.map((e) => s(t, e)).find((e) => d(e));
|
|
128
|
+
if (!f) throw Error(`No Wrangler configuration in ${t}`);
|
|
129
|
+
let { core: p, plugins: m } = w(e), h = O(t), _ = await import(u(h.module).href), { unstable_readConfig: v } = "unstable_readConfig" in _ ? _ : _.default, y = v({
|
|
130
|
+
config: f,
|
|
131
|
+
env: T(n.CLOUDFLARE_ENV)
|
|
132
|
+
}, { hideWarnings: !0 }), C = (e) => y.d1_databases.find(({ binding: t }) => t === e), E = C("DATABASE"), D = C("CACHE_DATABASE");
|
|
133
|
+
if (!E) throw Error("DATABASE D1 binding is required");
|
|
134
|
+
if (o) {
|
|
135
|
+
for (let e of [E, D]) if (e && !e.database_id) throw Error(`${e.binding} database_id is required for remote migrations`);
|
|
136
|
+
}
|
|
137
|
+
for (let e of [E, D]) if (e?.migrations_table && e.migrations_table !== b) throw Error(`${e.binding} migrations_table must be ${b} or unset`);
|
|
138
|
+
let j = s(t, ".wrangler/state"), M = await r(s(g(), "pagescms-migrate-")), N = [];
|
|
139
|
+
try {
|
|
140
|
+
let e = async (e, n) => {
|
|
141
|
+
let r = S(n.id, "cloudflare"), i = s(M, `${e.binding}-${n.id}.json`);
|
|
142
|
+
await a(i, JSON.stringify({
|
|
143
|
+
name: "pagescms-migrations",
|
|
144
|
+
account_id: y.account_id,
|
|
145
|
+
compatibility_date: y.compatibility_date,
|
|
146
|
+
d1_databases: [{
|
|
147
|
+
binding: e.binding,
|
|
148
|
+
database_name: e.database_name,
|
|
149
|
+
database_id: e.database_id,
|
|
150
|
+
preview_database_id: e.preview_database_id,
|
|
151
|
+
migrations_dir: n.folder,
|
|
152
|
+
migrations_table: r
|
|
153
|
+
}]
|
|
154
|
+
})), await A(h.bin, [
|
|
155
|
+
"d1",
|
|
156
|
+
"migrations",
|
|
157
|
+
"apply",
|
|
158
|
+
e.binding,
|
|
159
|
+
o ? "--remote" : "--local",
|
|
160
|
+
"--config",
|
|
161
|
+
i,
|
|
162
|
+
...o ? [] : ["--persist-to", j]
|
|
163
|
+
], t, o), N.push({
|
|
164
|
+
database: e.binding,
|
|
165
|
+
source: n.id,
|
|
166
|
+
journal: r
|
|
167
|
+
});
|
|
168
|
+
};
|
|
169
|
+
for (let t of [p, ...m]) await e(E, t);
|
|
170
|
+
D && (o ? D.database_id !== E.database_id : k(D) !== k(E)) && await e(D, p);
|
|
171
|
+
} finally {
|
|
172
|
+
await i(M, {
|
|
173
|
+
recursive: !0,
|
|
174
|
+
force: !0
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
return N;
|
|
178
|
+
}
|
|
179
|
+
async function M(t, n = {}) {
|
|
180
|
+
let r = e(t), i = c(n.root ?? process.cwd()), a = n.environment ?? process.env;
|
|
181
|
+
if (n.remote && r.target !== "cloudflare") throw Error("Remote migrations are only available for Cloudflare targets");
|
|
182
|
+
return r.target === "node" ? D(r, i, a) : j(r, i, a, n.remote === !0);
|
|
183
|
+
}
|
|
184
|
+
export { C as assertMigrationFolder, M as migratePackage, S as migrationJournal };
|